Alias /errors C:/somefolder/errors <Directory C:/somefolder/errors> Order allow,deny Allow from all </Directory> ErrorDocument 403 http://domain.maindomain/errors/403.html,But I get "The Page Isn't Redirecting Properly" error. I also cannot go to the URL of http://domain.maindomain/errors/403.html file directly. I wonder if this is because I am restricting the top level directory (C:/somefolder) to certain IP addresses and then I am trying to access the subfolder (C:/somefolder/errors) to all. Can I restrict the top level directory, and still allow full access to a subdirectory?
Thank you, Tonu Joshua Slive wrote:
On 10/30/07, Tonu Mikk <tmikk@xxxxxxx> wrote:Hello, I have set up two virtual hosts in my Apache 2.0 httpd.conf file running on Windows XP. I am restricting which IP addresses can access the pages like so: <Directory C:/somefolder/*> # Restricting by IP access AllowOverride None Options None Order deny,allow Deny from all Allow from domain.maindomain Allow from xxx.xxx Allow from localhost </Directory> When people are not in the allowed subnet range, they get a Forbidden (Error 403) message. I would like to modify this message. I read that I could accomplish this by creating a htaccess file inForget about .htaccess. In httpd.conf, put Alias /errors c:/unrestricted/path/to/errors <Directory c:/unrestricted/path/to/errors> Order allow,deny Allow form all </Directory> ErrorDocument 403 /errors/403.html Joshua. --------------------------------------------------------------------- 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
--------------------------------------------------------------------- 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