LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-07-2008, 04:31 PM   #1
ANU
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Solaris 10
Posts: 78

Rep: Reputation: 15
apache authentication condition


i need some help as im a little lost
i didnt worked with apache for a while ... and forgot most of its little secrets

i have put something like this in my httpd.conf file to protect all my web-based applications with user/pass
<Directory />
AuthType Basic
AuthName "Secure BOX"
AuthzLDAPAuthoritative On
AuthLDAPURL "ldap://localhost:389/ou=People,dc=testbox,dc=com"
Require valid-user
</Directory>

but now it seams that i have a few new location which i want to grand free access, and i would like to exclude for example the directory /usr/local/apache/htdocs/public from the above authentication mechanism

is there some rules/if statement that i can put?

thanks for any help
 
Old 05-08-2008, 01:19 AM   #2
ANU
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Solaris 10
Posts: 78

Original Poster
Rep: Reputation: 15
am i in the wrong part of the forum with such a question?
or was i not clear enough about the question/problem?
 
Old 05-13-2008, 08:41 AM   #3
ANU
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Solaris 10
Posts: 78

Original Poster
Rep: Reputation: 15
i have put in the public directory a .htaccess file with this content
Order Allow,Deny
Satisfy Any
Allow from all

and in my httpd.conf file i have added some thing like

<Directory />
AuthType Basic
AuthName "Secure BOX"
AuthzLDAPAuthoritative On
AuthLDAPURL "ldap://localhost:389/ou=People,dc=testbox,dc=com"
Require valid-user
AllowOverride All
</Directory>

but when i try to access the public directory i will still be prompted for user/pass

some other ideas?
 
Old 05-15-2008, 09:34 AM   #4
ANU
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Solaris 10
Posts: 78

Original Poster
Rep: Reputation: 15
i found the solution to my problem ... by keep trying till it worked )
thanks for help

<Directory />
AuthType Basic
AuthName "Secure BOX"
AuthzLDAPAuthoritative On
AuthLDAPURL "ldap://localhost:389/ou=People,dc=testbox,dc=com"
Require valid-user
AllowOverride All
</Directory>

<Directory /usr/local/apache/htdocs/public>
Satisfy any
</Directory>
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache authentication 70mas Linux - Software 1 03-23-2007 06:58 AM
no http_referer apache mod_rewrite condition? The00Dustin Linux - Software 2 03-28-2006 05:51 PM
Apache 2.0 | mod_rewrite | Can you group rules under one condition? ganz_friedrich Linux - Software 0 02-15-2006 02:46 PM
apache authentication plisken Linux - Software 3 02-28-2003 12:00 AM
apache authentication d-rez Linux - Security 1 05-30-2002 08:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration