Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

website.com:8080 is set to require a password. However, I need website.com:8080/public to be accessible to anyone.

I found this example with Apache 2.3 which is exactly what I want, but I'm using 2.2 and AuthType None is not supported.

<Directory /www/docs>
   AuthType Basic
   AuthName Documents
   AuthBasicProvider file
   AuthUserFile /usr/local/apache/passwd/passwords
   Require valid-user
</Directory>
<Directory /www/docs/public>
   AuthType None
   Require all granted
</Directory>
share|improve this question

2 Answers 2

up vote 1 down vote accepted
<Directory /www/docs/public>
  Order Allow,Deny
  Allow from all
  Satisfy any
</Directory>

The "Satisfy any" means that the "Allow from all" will be sufficient, even without the "Require valid-user" being satisfied.

share|improve this answer
    
That works, but I did have to add:LoadModule authz_host_module /usr/lib/apache2/modules/mod_authz_host.so –  nathand Nov 8 '10 at 15:11
<Directory /www/docs/public>
  Order Allow,Deny
  Allow from all
</Directory>
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.