Received: (qmail 22679 invoked by uid 2012); 27 Dec 1999 14:40:55 -0000 Message-Id: <19991227144055.22678.qmail@hyperreal.org> Date: 27 Dec 1999 14:40:55 -0000 From: Vasil Kolev Reply-To: vasil@dobrich.net To: apbugs@hyperreal.org Subject: mod_rewrite doesn't work with mod_vhost_alias X-Send-Pr-Version: 3.2 >Number: 5512 >Category: mod_rewrite >Synopsis: mod_rewrite doesn't work with mod_vhost_alias >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Dec 27 06:50:00 PST 1999 >Closed-Date: Wed Sep 20 14:23:46 PDT 2000 >Last-Modified: Wed Sep 20 14:23:46 PDT 2000 >Originator: vasil@dobrich.net >Release: 1.3.9 >Organization: >Environment: Linux 2.2.13 ,Debian Potato i386 >Description: When I wanted to switch ot mod_vhost_alias instead of using hundreds of 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 ? >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: fanf State-Changed-When: Wed Sep 20 14:23:45 PDT 2000 State-Changed-Why: I can't duplicate this problem using the configuration directives that you included. I do get output in my rewrite log indicating that it is working. Perhaps your src/Configuration file has mod_vhost_alias and mod_rewrite in a strange order. >Unformatted: [In order for any reply to be added to the PR database, you need] [to include 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! ]