Quantcast
Channel: apache (Forum tag)
Viewing all articles
Browse latest Browse all 34

Enable password only access to apache2

$
0
0

I am using revision control image. There is no authentication for accessing the pages or SVN / Git web views.

I wan to put some level of authentication so that it will ask for username and password. I tried to creating .htpasswd and put below block in svn.conf & git.conf.

AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user

But it didn't work. Also tried creating /var/www/.htaccess file with above content but it didn't work.

Anythought how to make asking for login & password. Along with cacheing of password disabled.

Tags: 
Forum: 

Viewing all articles
Browse latest Browse all 34

Trending Articles