Page 1 of 1

Folder Access

PostPosted: 08. August 2006 03:29
by Vindictive
This may sound silly, but how do I change who accesses what folder in htdocs so people can access the folders I choose.

PostPosted: 08. August 2006 03:34
by Wiedmann
Authentication, Authorization and Access Control
http://httpd.apache.org/docs/2.2/en/howto/auth.html

Apache Tutorial: .htaccess files
http://httpd.apache.org/docs/2.2/en/howto/htaccess.html

PostPosted: 08. August 2006 03:35
by Vindictive
Holy heck, thanks for the extremley fast reply!

*bows down*

PostPosted: 08. August 2006 04:27
by Vindictive
Vindictive wrote:I've made a downloads.htpasswd file containing my encrypted password for the directory, and then i made a .htaccess file with
AuthType Basic
AuthName "downloads"
AuthBasicProvider file
AuthUserFile C:/program files/xampp/security/downloads.htpasswd
Require user downloads


and i get this as an error when i go to the folder
Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.
Error 500
****.*****.net
08/08/06 15:22:29
Apache/2.2.2 (Win32) DAV/2 mod_ssl/2.2.2 OpenSSL/0.9.8b mod_autoindex_color PHP/5.1.4

PostPosted: 08. August 2006 04:29
by Wiedmann
Server error!
Error 500

If you get an error 500, look into the "error.log".

AuthUserFile C:/program files/xampp/security/downloads.htpasswd

You must use quotes:
Code: Select all
AuthUserFile "C:/program files/xampp/security/downloads.htpasswd"