[users@httpd] mod_rewrite not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux