I want to protect a folder with Apache, so when a user tries to access that folder, a username & password should be asked for. I use the following code in httpd.conf, but it doesn't work. Code: # Set up an authenticated directory, in this case foo <Directory "/srv/www/foo"> AuthType Basic AuthName "Efarmogi" AuthUserFile /srv/www/www.foo.gr/user/foo_user/allow.users require foo_user </Directory> Any ideas?
Try this: Code: # Set up an authenticated directory, in this case foo <Directory "/srv/www/foo"> AuthType Basic AuthName "Efarmogi" AuthUserFile /srv/www/www.foo.gr/user/foo_user/allow.users require valid-user </Directory>
According to this: http://httpd.apache.org/docs/2.0/howto/auth.html I have to install mod_auth, mod_access first, so I have to figure out how to do it in SLES 10.