I have read the documentation but ot sure to understnad:
I have the following structure
root ---> index.jsp
Sub directory /top ---> 403.jsp
I have try to deny access to files in root but to permit access to /top subdirectory
I use in vhost.conf the following lines:
--------------------------------------
ErrorDocument 403 /top/403.jsp
</Directory >
Order allow,deny
Allow from all
deny from 10.58.0.0/16
</Directory>
<Directory /top>
<Files 403.jsp>
Order allow,deny
Allow from all
</Files>
</Directory>
--------------------------------------
Why doesn't it work? The deny works fine. People in the range 10.58.0.0/16 have no access to index.jsp at root, but when I try to show a personalized 403 page in
/top directory, just show the usual page not the personmized one.
I guess I didn't understand fully the Directory and Files directives.
Thanks for your help
I have the following structure
root ---> index.jsp
Sub directory /top ---> 403.jsp
I have try to deny access to files in root but to permit access to /top subdirectory
I use in vhost.conf the following lines:
--------------------------------------
ErrorDocument 403 /top/403.jsp
</Directory >
Order allow,deny
Allow from all
deny from 10.58.0.0/16
</Directory>
<Directory /top>
<Files 403.jsp>
Order allow,deny
Allow from all
</Files>
</Directory>
--------------------------------------
Why doesn't it work? The deny works fine. People in the range 10.58.0.0/16 have no access to index.jsp at root, but when I try to show a personalized 403 page in
/top directory, just show the usual page not the personmized one.
I guess I didn't understand fully the Directory and Files directives.
Thanks for your help