httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: [users@httpd] 403 Errors and Virtual Hosts
Date Fri, 18 Jul 2008 15:35:20 GMT
On 7/17/08, Rob <> wrote:
> Just wondering if some one could give me a hand with my Virtual Host
> # mysite
> <VirtualHost>
> ServerName
>  RewriteEngine on
> RewriteCond %{HTTP_HOST}   !^$
> RewriteRule ^/(.*)$1 [NE,R]
>  </VirtualHost>
> <VirtualHost>
>     ServerAdmin
>     DocumentRoot /var/www/html/mysite
>      ServerName
>      ErrorDocument 403 /var/www/html/mysite403/index.html
> </VirtualHost>
> Thats what my current virtual host looks like. Im trying to get my 403
> errors for a certain website to display that index file. Its not working
> this way, can some one please advise where i have gone wrong ?


The second ErrorDocument parameter is either a message or a page found
like a URL redirect.  Do you have a webpage at this location?
My guess is you configured an absolute filepath and Apache httpd is
handling the value as a relative URL.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message