Explain how to password protect certain directories

          

Explain how to password protect certain directories.


Oracle HTTP Server (Apache) - Explain how to password protect certain directories. posted by Babu Kunwar
<<Previous   Next>>

Explain how to password protect certain directories.

Using Satisfy Any directive we can password protect certain directories. To do so only one of the access restrictions needs to be met. Add the following configuration to an .htaccess or server configuration file which would restrict access to people.

Deny from all
Allow from .domain.com
AuthType Basic
AuthUserFile /usr/local/apache/conf/htpasswd.users
AuthName "special directory"
Require valid-user
Satisfy any
Remember: After this the pages under that direcotry can only be accessed by providing a valid username or password.



Write your comment - Share Knowledge and Experience


<<Previous   Next >> 
More links
Restricting and sorting data in oracle

Explain how to limit the rows that are retrieved by a query.
Explain how to sort the rows that are retrieved by a query.
What are the comparison operators in oracle. List them with description................

Interview questions
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring