I have a very strange situation.
I am running two webservers. Both Apache 2.0.59 with
almost identical configuration. On both servers I
configured a mod_rewrite rule. It works on one, but
not on the other.
The webserver that does not work reports the following
error message:
[Thu Nov 02 08:22:16 2006] [error] [client
xxx.xxx.xxx.xxx] Options FollowSymLinks or
SymLinksIfOwnerMatch is off which implies that
RewriteRule directive is forbidden:
/var/www/html/secure
### config of the functioning webserver
<Directory "/var/www/html">
#
# Possible values for the Options directive are
"None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks
SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named
*explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and
important. Please see
#
http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options -ExecCGI -FollowSymlinks -Indexes
#
# AllowOverride controls what directives may be
placed in .htaccess files.
# It can be "All", "None", or any combination of
the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
<Location /secure>
RewriteEngine on
RewriteBase /secure/
RewriteCond %{HTTPS} off
RewriteRule (.*)
https://www.mydomain.com%{REQUEST_URI}
</Location>
### config of the non-functioning webserver
#
<Directory "/var/www/html">
#
# Possible values for the Options directive are
"None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks
SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named
*explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and
important. Please see
#
http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options -ExecCGI -FollowSymlinks -Indexes
#
# AllowOverride controls what directives may be
placed in .htaccess files.
# It can be "All", "None", or any combination of
the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
<Location /secure>
RewriteEngine on
RewriteBase /secure/
RewriteCond %{HTTPS} off
RewriteRule (.*)
https://www.mydomain.com%{REQUEST_URI}
</Location>
Any feedback would greatly be appreciated. Thanks
guys!
Richard
____________________________________________________________________________________
Access over 1 million songs - Yahoo! Music Unlimited
(http://music.yahoo.com/unlimited)
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]