Jump to content
groovyPost Forums

htaccess directory protection in Windows


Guest andierosebud

Recommended Posts

Guest andierosebud

Hi! :) I'm trying to configure the httpd.conf file to use directory passwords for the pages chapter_1.html and chapter_2.html, but I'm having some trouble. I can't even get Apache to start now. I've added AllowOverride AuthConfig and have done this so far:

#Change AccessFileName if you used htaccess rather than .htaccess

AccessFileName htaccess

#Also, add these lines to turn on authentication for your chapter_1 and chapter_2 folders

AllowOverride AuthConfig

...except that I couldn't change AccessFileName .htaccess because no such text exists in my httpd.conf file. I have Windows XP and I've searched and searched but can't figure out what I'm doing wrong here. If someone could please help, I'd greatly appreciate it!

Link to comment
Share on other sites

Hi Andierosebud,

 

Did you read my article here: http://www.groovypost.com/howto/apache/ ... e-website/ regarding how-to setup password security using the .htaccess?

 

That's the first place I would start. you should be able to put a custom .htaccess file into each subfolder in order to get the password working there.

 

Let me know if you have problems after reading the article.

Link to comment
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

  • Who's Online   0 Members, 0 Anonymous, 4 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...