Re: Apache 2.2 mod rewrite issue... or something

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

 



On 02/25/2010 11:29 AM, Brandon Stout wrote:

I have this on my new server...
  
I've found a hack I guess I'll live with.  I commented out the
ErrorDocument line here:

# cat /etc/httpd/conf.d/welcome.conf
#
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL.  To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
    Options Indexes
    #ErrorDocument 403 /error/noindex.html
</LocationMatch>

Then I add this to the bottom of the vhost (uncommenting my own rewrite
rule designed redirect any ServerAliase to the ServerName):

    RewriteEngine On
    RewriteOptions Inherit
    RewriteCond %{HTTP_HOST} !^flfn\.org$ [NC]
    RewriteRule ^(.*)$ http://flfn.org$1 [R=301,L]
#Hack:
    ErrorDocument 403 /index.php

Now it all works just fine.  The underlying problem is still there, but
without a real solution, I'll take the hack and move on.

Brandon

[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