|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
How do I password protect a web directory? I read about that htaccess is not
recommended. What do I do to protect /home/www/html/intranet folder? thanks |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
tony wrote:
> How do I password protect a web directory? I read about that htaccess is not > recommended. What do I do to protect > > /home/www/html/intranet folder? > > thanks > > If you have access to your httpd.conf file that add it there in a <Directory></Directory> tag IE. <Directory "/path/to/your/directory/to/be/protected"> Options -Indexes AllowOverride All AuthType Basic AuthName "Admin Area" AuthUserFile /path/to/your/.htpasswd Require valid-user </Directory> Be sure to restart you server after making changes to your httpd.conf file |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
tony wrote:
> How do I password protect a web directory? I read about that htaccess is not > recommended. What do I do to protect > > /home/www/html/intranet folder? > > thanks > > another thought. If you do not have access to your httpd.conf your best bet is to use .htaccess |
|
![]() |
| Outils de la discussion | |
|
|