apache configuration, relax Auth restriction on 1 file?

Micah DesJardins micahdj at gmail.com
Thu Dec 22 09:47:04 MST 2005


You're on the right track with the Files directive, what you were
missing is allow from all and satisfy any.  That way you can restrict
"above" the file in the directory tree and allow access to this one
file by allowing "Any" of the above checks to allow access and then to
use the allow directive to allow from all.

Example:

<Files /usr/local/apache/htdocs/somefile.ruby>
  AuthType Basic
  AuthName Restricted
  AuthUserFile /www/passwd/users
  Require valid-user
  Order allow,deny
  Allow from all
  Satisfy any
</Files>

More info:

http://httpd.apache.org/docs/1.3/howto/auth.html


More information about the PLUG-discuss mailing list