User Tools

Site Tools


apache:allow_full_access_to_the_apache_subdirectory

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
apache:allow_full_access_to_the_apache_subdirectory [2017/04/03 14:06] – created peterapache:allow_full_access_to_the_apache_subdirectory [2020/07/15 09:30] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Apache - Allow full access to the Apache subdirectory ====== ====== Apache - Allow full access to the Apache subdirectory ======
  
-Usually, people will set basic authentication for apache directory (normally /var/www/html in centos). The reason is to protect the directory from unauthorized access. But what if a subdirectory inside (let say /var/www/html/mydirectory) needs full access? This is where .htaccess file comes into picture. To allow access to /var/www/html/mydirectory while maintaining authentication for /var/www/html, just follow below steps:+Usually, people will set basic authentication for apache directory (normally /var/www/html in centos). 
 + 
 +The reason is to protect the directory from unauthorized access. 
 + 
 +But what if a subdirectory inside (let say /var/www/html/mydirectory) needs full access?  This is where .htaccess file comes into picture. 
 + 
 +To allow access to /var/www/html/mydirectory while maintaining authentication for /var/www/html, just follow below steps:
  
  
Line 29: Line 35:
  
 <code bash> <code bash>
-httpd -k graceful+sudo httpd -k graceful
 </code> </code>
  
apache/allow_full_access_to_the_apache_subdirectory.1491228410.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki