You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ron Croonenberg <ro...@lanl.gov> on 2016/01/21 18:28:17 UTC

[users@httpd] Athentication

Hello,

I want some authentication, but want to exclude a directory
Below is the virtual host:
Problem is that it wants to authenticate on everything in /var/www.

I did change the first Directory directive to /var/www/proxy1 but that 
did not change anything.

thanks,

Ron




Listen 81

<VirtualHost *:81>
DocumentRoot /var/www

#
# mod_auth_digest authentication
#
<Directory "/var/www">
   AuthType Digest
   AuthName "DATA"
   AuthDigestDomain http://localhost/proxy1
   AuthDigestProvider file
   AuthUserFile /etc/httpd/.htpasswd-digest
   Require valid-user
</Directory>

<Directory "/var/www/proxy2">
   AuthType None
   Require all granted
</Directory>

</VirtualHost>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org