Java Mailing List Archive

http://www.apache-httpd.com/

Home » users.httpd »

[users@httpd] 403 Errors and Virtual Hosts

Rob

2008-07-17

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi there,

Just wondering if some one could give me a hand with my Virtual Host

# mysite
<VirtualHost 0.0.0.0:80>
ServerName mysite.co.nz
RewriteEngine on
RewriteCond %{HTTP_HOST}   !^$
RewriteRule ^/(.*)         http://www.mysite.co.nz/$1 [NE,R]
</VirtualHost>

<VirtualHost 0.0.0.0:80>
    ServerAdmin myemail@mysite.co.nz
    DocumentRoot /var/www/html/mysite
    ServerName www.mysite.co.nz
    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 ?

cheers
©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.