Java Mailing List Archive

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

Home » users.httpd »

[users@httpd] ErrorDocument 403 does not work for document root

Jurrie Overgoor

2008-07-09


Author LoginPost Reply
Hello everyone,

While I'm buidling (or updating) my site, I want to redirect my visitors
to a special "work in progress" page. I'm trying to do this by using
this .htaccess file

Order Deny,Allow
Deny from all
Allow from 87.210.176.14
ErrorDocument 403 /wip/index.html

Furthermore, I have a .htaccess in the /wip/ directory that allows total
access:

Order Deny,Allow
Deny from all
Allow from all

This works okay for the most part. URLs like http://domain.org/doesexist
and http://domain.org/doesnotexist are redirected to
http://domain.org/wip/index.html. But it does NOT work for the URL
http://domain.org/. Instead, I get the "Fedora test page".

I'm wondering what the problem is here. Apache error logs show nothing
interesting:
[Wed Jul 09 22:16:24 2008] [error] [client a.b.c.d] client denied by
server configuration: /var/www/vhosts/horecaraalte.nl/httpdocs/doesnotexist
[Wed Jul 09 22:16:27 2008] [error] [client a.b.c.d] client denied by
server configuration: /var/www/vhosts/horecaraalte.nl/httpdocs/
But the result of both requests is different. The first redirects (okay)
to /wip/index.html, the second to the Fedora test page.

It might be an issue with Plesk 8.2.0, with CentOS, or with my hosting
provider's configuration files. But I have a hunch the problem is with
my .htaccess configuration...

Can anyone help me here? Thanks in advance!

With kind regards,

Jurrie Overgoor

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

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