Joshua, thanks for the tip! I tried the following in my httpd.conf
virtual host portion:
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 <[EMAIL PROTECTED]> 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 in
Forget 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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]