Help - Search - Members - Calendar
Full Version: .htaccess Server Path
HTMLHelp Forums > Programming > Web Server Configuration
aspmkt2009
I have set Filezilla to ASCII not autodetect or binary.

For some reason my intranet page will not detect my .htaccess file and prompt for a password.

I have the .htpasswd file set up, I just don't have the file name listed here, and the code in it was generated and encrypted.

Here's the code I have set up for the .htaccess

AuthType Basic
AuthUserFile /inetpub/vhosts/aspenequipment.com/httpdocs/intranet/.ht......
AuthGroupFile /dev/null
AuthName "Aspen Equipment Intranet"
Require valid-user

Here's what PHP says is my root path...

C:\inetpub\vhosts\aspenequipment.com\httpdocs\

I have a phpinfo.php file out there if you want to take a look...

http://www.aspenequipment.com/phpinfo.php

Thanks for any advice, I'm pretty sure I just have the coding wrong somewhere. I have tried multiple variations of the root path from the full thing, including c:/ to just aspenequipment.com/intranet.
pandy
QUOTE
AuthUserFile /inetpub/vhosts/aspenequipment.com/httpdocs/intranet/.ht......


QUOTE
Here's what PHP says is my root path...

C:\inetpub\vhosts\aspenequipment.com\httpdocs\


You should use the full path to .htpasswd, exactly how you wrote it the second time above.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.