Xampp Apache authorization

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

Xampp Apache authorization

Postby rjohn06 » 27. April 2010 19:17

I am trying to set up Apache with xampp to remove password authentication from some of my directories. Specifically, I would like a password to be required for the /htdocs/xampp folder, but I do not want the server to prompt for a password on any subdirectories. I have read that I can perform this type of override using .htaccess files.

Currently the .htaccess file in the xampp directory is this:
Code: Select all
AuthName "xampp user"                 
AuthType Basic   
AuthUserFile /opt/lampp/lib/xampp.users
require valid-user   


And the .htaccess file in the subdirectory looks like this:
Code: Select all
Allow from all


In this case, the server still prompts for a password when trying to access the subdirectory. What should the syntax of the .htacces file of the subdirectory look like to override password authentication?
rjohn06
 
Posts: 2
Joined: 27. April 2010 19:10

Re: Xampp Apache authorization

Postby rjohn06 » 27. April 2010 19:41

I figured it out

the .htaccess file for the subdirectory should look like this:

Code: Select all
Allow from all
require none
Satisfy Any
rjohn06
 
Posts: 2
Joined: 27. April 2010 19:10


Return to XAMPP for Windows

Who is online

Users browsing this forum: Flexnood and 119 guests