ErrorDocument 403 does not work for document root

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

 



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


[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