www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Blayzor <rob...@superior.net>
Subject mod_rewrite/2478: mod_rewrite appears broken under virtual hosts (and maybe broken all together)
Date Sun, 21 Jun 1998 13:30:55 GMT

>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:     robert@superior.net
>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     robert@nimbus.superior.net:/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 <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]




Mime
View raw message