>Number: 5512 >Category: mod_rewrite >Synopsis: mod_rewrite doesn't work with mod_vhost_alias >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Dec 27 06:50:00 PST 1999 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.9 >Environment: Linux 2.2.13 ,Debian Potato i386 >Description: When I wanted to switch ot mod_vhost_alias instead of using hundreds of <virtualhost> s ,I run into the following problem - It doesn't process my RewriteRules ,etc.Here is the config :
UseCanonicalName off LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon CustomLog /var/log/apache/vhost.log vcommon RewriteEngine ON RewriteLogLevel 9 RewriteLog /var/log/apache/rw.log RewriteCond %{HTTP_REFERER} ^http://%{HTTP_HOST}/ [OR] RewriteCond %{HTTP_REFERER} ^$ [OR] RewriteCond %{REQUEST_URI} /*.htm$ [OR] RewriteCond %{REQUEST_URI} /*.html$ [OR] RewriteCond %{REQUEST_URI} /*/$ RewriteRule ^/* - [NS,L] RewriteRule ^/* http://%{HTTP_HOST}/ [NS,F,L] VirtualDocumentRoot /www/%0 And there isn't anything in rw.log - It just doesn't do anything... >How-To-Repeat: no URL for this at the moment,it's not easy visible through the web. >Fix: To process everything about mod_rewrite before mod_vhost_alias probably ? >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 make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]