>the first host <a style='text-decoration: underline;' href="http://www.firsthost.com" target="_blank">www.firsthost.com</a> works just fine, the rest doesn't
>
>
> NameVirtualHost 192.168.200.50
>
> <VirtualHost 192.168.200.50:80>
> DocumentRoot /srv/www/firsthost/cms-web/
<font color=green> > ServerName <a style='text-decoration: underline;' href="http://www.firsthost.com</font" target="_blank">www.firsthost.com</font</a>>
> ScriptAlias /cgi-bin /srv/www/firsthost/cgi-bin
> RewriteEngine on
> RewriteRule ^[^/]*\.html$ /index.php
> ErrorDocument 404 /index.php
> </VirtualHost>
>
>
> <VirtualHost 192.168.200.50>
> DocumentRoot "/srv/www/secondhost"
<font color=green> > ServerName <a style='text-decoration: underline;' href="http://www.secondhost.de</font" target="_blank">www.secondhost.de</font</a>>
> RewriteEngine on
> RewriteRule ^[^/]*\.html$ /index.php
> </VirtualHost>
>
>
> <VirtualHost 192.168.200.50>
> DocumentRoot /srv/www/firsthost/cms-web/
<font color=green> > ServerName <a style='text-decoration: underline;' href="http://www.firsthost.net</font" target="_blank">www.firsthost.net</font</a>>
> RewriteEngine on
> RewriteRule ^[^/]*\.html$ /index.php
> </VirtualHost>
>
Hi,
well what I think is really strange, is the fact that the same rewrite
rule which worked for <a style='text-decoration: underline;' href="http://www.firsthost.com" target="_blank">www.firsthost.com</a> doesn't work for
<a style='text-decoration: underline;' href="http://www.firsthost.net," target="_blank">www.firsthost.net,</a> although they both point to the same directory!
However I did a request for the working rewrite rule:
192.168.x.x - - [30/Oct/2003:15:27:03 +0100]
[www.firsthost.com/sid#816c580][rid#8413978/initial] (2) init rewrite
engine with requested uri /6.0.html
192.168.x.x - - [30/Oct/2003:15:27:03 +0100]
[www.firsthost.com/sid#816c580][rid#8413978/initial] (3) applying
pattern '^[^/]*\.html$' to uri '/6.0.html'
192.168.x.x - - [30/Oct/2003:15:27:03 +0100]
[www.firsthost.com/sid#816c580][rid#8413978/initial] (1) pass through
/6.0.html
192.168.x.x - - [30/Oct/2003:15:27:03 +0100]
[www.firsthost.com/sid#816c580][rid#841ee88/initial/redir#1] (2) init
rewrite engine with requested uri /index.php
192.168.x.x - - [30/Oct/2003:15:27:03 +0100]
[www.firsthost.com/sid#816c580][rid#841ee88/initial/redir#1] (3)
applying pattern '^[^/]*\.html$' to uri '/index.php'
192.168.x.x - - [30/Oct/2003:15:27:03 +0100]
[www.firsthost.com/sid#816c580][rid#841ee88/initial/redir#1] (1) pass
through /index.php
And now for the non-working rewrite rule beginning with go to url
<a style='text-decoration: underline;' href="http://www.secondhost.de:" target="_blank">www.secondhost.de:</a>
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#8413978/initial] (2) init rewrite
engine with requested uri /
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#8413978/initial] (3) applying
pattern '^[^/]*\.html$' to uri '/'
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#8413978/initial] (1) pass through
/
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#8415990/subreq] (2) init rewrite
engine with requested uri /index.html
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#8415990/subreq] (3) applying
pattern '^[^/]*\.html$' to uri '/index.html'
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#8415990/subreq] (1) pass through
/index.html
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#8415990/subreq] (2) init rewrite
engine with requested uri /index.php
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#8415990/subreq] (3) applying
pattern '^[^/]*\.html$' to uri '/index.php'
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#8415990/subreq] (1) pass through
/index.php
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#841da38/initial/redir#1] (2) init
rewrite engine with requested uri /index.php
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#841da38/initial/redir#1] (3)
applying pattern '^[^/]*\.html$' to uri '/index.php'
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#841da38/initial/redir#1] (1) pass
through /index.php
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#8413978/initial] (2) init rewrite
engine with requested uri /fileadmin/template/res/styles.css
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#8413978/initial] (3) applying
pattern '^[^/]*\.html$' to uri '/fileadmin/template/res/styles.css'
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#8413978/initial] (1) pass through
/fileadmin/template/res/styles.css
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#8413978/initial] (2) init rewrite
engine with requested uri /fileadmin/template/res/images/logo.gif
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#8413978/initial] (3) applying
pattern '^[^/]*\.html$' to uri
'/fileadmin/template/res/images/logo.gif'
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#8413978/initial] (1) pass through
/fileadmin/template/res/images/logo.gif
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#8413978/initial] (2) init rewrite
engine with requested uri /clear.gif
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#8413978/initial] (3) applying
pattern '^[^/]*\.html$' to uri '/clear.gif'
192.168.0.1 - - [30/Oct/2003:15:28:15 +0100]
[www.secondhost.de/sid#85a50c0][rid#8413978/initial] (1) pass through
/clear.gif
Here I tried to use a link:
192.168.0.1 - - [30/Oct/2003:15:28:17 +0100]
[www.secondhost.de/sid#85a50c0][rid#8413978/initial] (2) init rewrite
engine with requested uri /34.0.html
192.168.0.1 - - [30/Oct/2003:15:28:17 +0100]
[www.secondhost.de/sid#85a50c0][rid#8413978/initial] (3) applying
pattern '^[^/]*\.html$' to uri '/34.0.html'
192.168.0.1 - - [30/Oct/2003:15:28:17 +0100]
[www.secondhost.de/sid#85a50c0][rid#8413978/initial] (1) pass through
/34.0.html
Hope someone can help.
Regards
Markus
--
One OS to rule them all, One OS to find them,
One OS to bring them all and in the darkness bind them.
<a style='text-decoration: underline;' href="http://www.xsys.biz" target="_blank">www.xsys.biz</a><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: rewrite problem with name virtual hosts