>Number: 2478 >Category: mod_rewrite >Synopsis: mod_rewrite appears broken under virtual hosts (and maybe >broken all together) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sun Jun 21 06:40:00 PDT 1998 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.0 >Environment: FreeBSD 2.2.6-STABLE, GCC FreeBSD nimbus.superior.net 2.2.6-STABLE FreeBSD 2.2.6-STABLE #0: Mon Mar 30 13:24:43 EST 1998 [EMAIL PROTECTED]:/usr/src/sys/compile/NIMBUS i386 >Description: I have confirmed that mod_rewrite was compiled into my httpd exec by looking into my build output. Following is in the httpd.conf: # NameVirtualHost x.x.x.x # ... # <VirtualHost x.x.x.x> ServerName users.mydomain.dom DocumentRoot /usr/local/etc/httpd/htdocs/users/ ErrorLog logs/users-error_log TransferLog logs/users-access_log RewriteLog logs/users-rewrite_log RewriteEngine on RewriteRule ^/$ /index.html [L] RewriteRule ^/([^/]+)/?(.*)$ http://www.mydomain.dom/~$1/$2 [R=permanent] </VirtualHost> # #
Upon execing httpd, I get the following error in the error log, and Apache fails to start. [Sat Jun 20 20:34:02 1998] [notice] SIGHUP received. Attempting to restart Syntax error on line 265 of /usr/local/etc/httpd/conf/httpd.conf: Invalid command 'RewriteLog', perhaps mis-spelled or defined by a module not inc luded in the server configuration NOTE: This worked flawlessly in 1.2.6 >How-To-Repeat: Compile mod_rewrite in Apache, create a virtualhost with rewrite rules as above. >Fix: N/A >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. ]
