OnDeny Directive
Top -
Docs -
General -
Server -
Resource -
Access -
FAQ -
Tutorials
Purpose
The purpose of the OnDeny directive is to provide for non-HTTP based
access control, such as via the referer
directive. It causes a browser which fails the Limit
to go to a specified URL.
Syntax
Only valid in the Limit section.
OnDeny URL
Where URL is the URL to redirect the browser to.
Virtual Host
Does not apply.
Default
The default is to let the normal HTTP 401 response handle the authentication
failure.
Examples
<Directory /u/Web/test/referer>
<Limit GET POST>
order deny,allow
deny from all
referer allow from http://hoohoo.ncsa.uiuc.edu*/test/*
OnDeny http://hoohoo.ncsa.uiuc.edu/test/
</Limit>
</Directory>
This example limits users to entering the /u/Web/test/referer
directory through the /test/
URLs. The * allows any port number
or any directory beyond /test/
. The
OnDeny directive would then send the browser to
http://hoohoo.ncsa.uiuc.edu/test/
.
Return to Configuration File Overview
NCSA HTTPd Development Team /
httpd@ncsa.uiuc.edu /
04-06-96