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

Reply via email to