By Letharion on
I have /drupal/sites/site.com
In hosts I have added the ip, so that I can access site.com and drupal correctly resolves this.
Now how do I show this to someone else?
I've been trying to make it work with apache mod_rewrite, but can't quite figure it out.
RewriteEngine on
RewriteCond %{SERVER_NAME} 87.251.215.19
RewriteRule ^/drupal/(.*)$ http://infozinzino.org/$1 [L]<VirtualHost *:80>
Include /etc/apache2/vhosts.d/default_vhost.include
ServerName www.infozinzino.org
DocumentRoot /var/www/localhost/htdocs/drupal
<IfModule mpm_peruser_module>
ServerEnvironment apache apache
</IfModule>
</VirtualHost>85.227.194.3 - - [26/Apr/2009:22:18:53 +0200] [87.251.215.19/sid#b80f6bb8][rid#b82cf668/initial] (3) [perdir /var/www/localhost/htdocs/drupal/] strip per-dir prefix: /var/www/localhost/htdocs/drupal/ ->
85.227.194.3 - - [26/Apr/2009:22:18:53 +0200] [87.251.215.19/sid#b80f6bb8][rid#b82cf668/initial] (3) [perdir /var/www/localhost/htdocs/drupal/] applying pattern '^(.*)$' to uri ''
85.227.194.3 - - [26/Apr/2009:22:18:53 +0200] [87.251.215.19/sid#b80f6bb8][rid#b82cf668/initial] (4) [perdir /var/www/localhost/htdocs/drupal/] RewriteCond: input='/var/www/localhost/htdocs/drupal/' pattern='!-f' => matched
85.227.194.3 - - [26/Apr/2009:22:18:53 +0200] [87.251.215.19/sid#b80f6bb8][rid#b82cf668/initial] (4) [perdir /var/www/localhost/htdocs/drupal/] RewriteCond: input='/var/www/localhost/htdocs/drupal/' pattern='!-d' => not-matched
85.227.194.3 - - [26/Apr/2009:22:18:53 +0200] [87.251.215.19/sid#b80f6bb8][rid#b82cf668/initial] (1) [perdir /var/www/localhost/htdocs/drupal/] pass through /var/www/localhost/htdocs/drupal/
85.227.194.3 - - [26/Apr/2009:22:18:53 +0200] [87.251.215.19/sid#b80f6bb8][rid#b82dfb80/subreq] (3) [perdir /var/www/localhost/htdocs/drupal/] strip per-dir prefix: /var/www/localhost/htdocs/drupal/index.php -> index.php
85.227.194.3 - - [26/Apr/2009:22:18:53 +0200] [87.251.215.19/sid#b80f6bb8][rid#b82dfb80/subreq] (3) [perdir /var/www/localhost/htdocs/drupal/] applying pattern '^(.*)$' to uri 'index.php'
85.227.194.3 - - [26/Apr/2009:22:18:53 +0200] [87.251.215.19/sid#b80f6bb8][rid#b82dfb80/subreq] (4) [perdir /var/www/localhost/htdocs/drupal/] RewriteCond: input='/var/www/localhost/htdocs/drupal/index.php' pattern='!-f' => not-matched
85.227.194.3 - - [26/Apr/2009:22:18:53 +0200] [87.251.215.19/sid#b80f6bb8][rid#b82dfb80/subreq] (1) [perdir /var/www/localhost/htdocs/drupal/] pass through /var/www/localhost/htdocs/drupal/index.php
85.227.194.3 - - [26/Apr/2009:22:18:53 +0200] [87.251.215.19/sid#b80f6bb8][rid#b82cb658/initial] (3) [perdir /var/www/localhost/htdocs/drupal/] strip per-dir prefix: /var/www/localhost/htdocs/drupal/install.php -> install.php
85.227.194.3 - - [26/Apr/2009:22:18:53 +0200] [87.251.215.19/sid#b80f6bb8][rid#b82cb658/initial] (3) [perdir /var/www/localhost/htdocs/drupal/] applying pattern '^(.*)$' to uri 'install.php'
85.227.194.3 - - [26/Apr/2009:22:18:53 +0200] [87.251.215.19/sid#b80f6bb8][rid#b82cb658/initial] (4) [perdir /var/www/localhost/htdocs/drupal/] RewriteCond: input='/var/www/localhost/htdocs/drupal/install.php' pattern='!-f' => not-matched
85.227.194.3 - - [26/Apr/2009:22:18:53 +0200] [87.251.215.19/sid#b80f6bb8][rid#b82cb658/initial] (1) [perdir /var/www/localhost/htdocs/drupal/] pass through /var/www/localhost/htdocs/drupal/install.php
85.227.194.3 - - [26/Apr/2009:22:18:55 +0200] [87.251.215.19/sid#b80f6bb8][rid#b82cf668/initial] (3) [perdir /var/www/localhost/htdocs/drupal/] strip per-dir prefix: /var/www/localhost/htdocs/drupal/install.php -> install.php
85.227.194.3 - - [26/Apr/2009:22:18:55 +0200] [87.251.215.19/sid#b80f6bb8][rid#b82cf668/initial] (3) [perdir /var/www/localhost/htdocs/drupal/] applying pattern '^(.*)$' to uri 'install.php'
85.227.194.3 - - [26/Apr/2009:22:18:55 +0200] [87.251.215.19/sid#b80f6bb8][rid#b82cf668/initial] (4) [perdir /var/www/localhost/htdocs/drupal/] RewriteCond: input='/var/www/localhost/htdocs/drupal/install.php' pattern='!-f' => not-matched
85.227.194.3 - - [26/Apr/2009:22:18:55 +0200] [87.251.215.19/sid#b80f6bb8][rid#b82cf668/initial] (1) [perdir /var/www/localhost/htdocs/drupal/] pass through /var/www/localhost/htdocs/drupal/install.php
Comments
Bump :)
Bump :)
I'm not an authority on it by
I'm not an authority on it by any means, but surely the other person would also have to change their hosts file to point to this IP address? Unless you point the actual domain to it?
Dave
Neither am I
But I have been told that it can be done locally.
I can also see why it could work. It's not like I'm able to "steal" the domain. I need the user to visit my domain first, and then I have apache act as a proxy and rewrite the url. Since the rewrite is done by the local webserver, it could know about the "correct" place to pull information from. But drupal won't know unless I can get this to work :)
How do the rest of you test stuff if not like this?