Not technically a Linux issue, but no other forum would be as helpful
I've set up a Debian virtual machine that is running as a web server. Once I'm finished getting everything set up, I'm making it externally accessible. I have a subversion server w/ web interface, and those are both username/password protected without an issue.
What I'm basically wanting to do is require a username/password to access the entire /var/www/ directory. I've followed a few guides, but none of them seem to be working.
Basically I made an .htaccess file in /var/www/, with the following contents:
I already had a username/password file made with htpasswd that I just used instead of .htpasswd. Not sure if this makes a difference or not, but I see no reason why it would.
I must be missing something here. I can still access my web server without any prompt for credentials.
Thanks guys,
- Jesse
I've set up a Debian virtual machine that is running as a web server. Once I'm finished getting everything set up, I'm making it externally accessible. I have a subversion server w/ web interface, and those are both username/password protected without an issue.
What I'm basically wanting to do is require a username/password to access the entire /var/www/ directory. I've followed a few guides, but none of them seem to be working.
Basically I made an .htaccess file in /var/www/, with the following contents:
AuthUserFile /etc/apache2/dav_svn.passwd
AuthGroupFile /dev/null
AuthName MySiteWeb
AuthType Basic
require valid-user
I already had a username/password file made with htpasswd that I just used instead of .htpasswd. Not sure if this makes a difference or not, but I see no reason why it would.
I must be missing something here. I can still access my web server without any prompt for credentials.
Thanks guys,
- Jesse