Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic authentication

Status
Not open for further replies.

zimzum88

Technical User
Jan 9, 2002
3
US
I am using Apache HTTP Server Version 1.3 on my win2k machine, I am having a hard time trying to get .htaccess to work I have tried all sorts of diffrent configurations and still havent been prompted for a password.
I am using name based virtual hosts to protect a sub-domain I.E. sub-domain.domain.com
I have created a .htaccess file It looks like this
AuthType Basic
AuthName "Protected"
AuthUserFile C:/Require valid-user
I have also put many diffrent directives in a <Directory> section but still no luck should I be putting the directives in my virtualhot config?
any help or suggestions or comparisons would greatly be appreciated!
Jaysin
 
Assuming you have these in your globals

AccessFileName .htaccess

<Files ~ &quot;^\.ht&quot;>
Order allow,deny
Deny from all
Satisfy All
</Files>

Check your protected containers. You should have

AllowOverride All
or
Options AuthConfig

Let's see if that works.


 
hahaha well I have no idea what I did but obiviously I did something correct, It is working now!!
thanks for trying though!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top