Folder Access

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Folder Access

Postby Vindictive » 08. August 2006 03:29

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

Postby Wiedmann » 08. August 2006 03:34

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
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Vindictive » 08. August 2006 03:35

Holy heck, thanks for the extremley fast reply!

*bows down*
Vindictive
 
Posts: 3
Joined: 08. August 2006 03:21

Postby Vindictive » 08. August 2006 04:27

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
Vindictive
 
Posts: 3
Joined: 08. August 2006 03:21

Postby Wiedmann » 08. August 2006 04:29

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"
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 98 guests