Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to understand Files and Directory directives

Status
Not open for further replies.

roman34

IS-IT--Management
Dec 16, 2005
4
FR
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top