>Number: 1790
>Category: mod_rewrite
>Synopsis: VirtualHosts are inheriting rewrite rules by default
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Wed Feb 11 14:10:01 PST 1998
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.3b3
>Environment:
Solaris 2.5.1
>Description:
My virtual hosts (actually host at the moment) is inheriting the rewrite rules
I've given my primary server. This is contrary to the documentation, but I'm
guessing it is not the documentation at fault.
In my httpd.conf file I have (this has been abridged):
ServerType standalone
HostnameLookups off
Listen 12.34.56.78:8000
Listen 12.34.56.90:80
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/lc(/.*)?
RewriteCond %{REQUEST_URI} !^/info(/.*)?
RewriteRule ^/(([a-zA-Z0-9])[a-zA-Z0-9_\-]+)/(.*) /sites/$2/$1/$3
<VirtualHost 12.34.56.90>
ServerName foo.salu.net
ServerAdmin [EMAIL PROTECTED]
AccessConfig conf/adm-access.conf
ResourceConfig conf/adm-srm.conf
ErrorLog /var/web/logs/foo/error_log
TransferLog /var/web/logs/foo/access_log
# RewriteEngine off
</VirtualHost>
Unfortunately the rewrite rules are applied to my foo.salu.net on 12.34.56.90:80
site as well as my main web server on 12.34.56.78:8000
>How-To-Repeat:
>Fix:
My workaround is to uncomment the RewriteEngine off directive in my VirtualHost
declaration, but according to the docs I shouldn't have to have that there.
%0
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]