Web Hosting Talk







View Full Version : .htaccess files ignored by apache?


protector330
03-28-2002, 02:17 PM
yes I'm a newbie :)

somehow and somewhy my .htaccess and .htpasswd files are beeing ignored by my apache. the good thing is that if I try to open:

http://www.myurldot.com/.htaccess or .htpasswd

the files are not beeing showed :) at least something.... but anyway apache goes on showing me the index.html file even if there is a user required :-(

could you pls tell me the line I've to change in my httpd.conf?


# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#

AllowOverride None


# AccessFileName: The name of the file to look for in each directory
# for access control information.
#
AccessFileName .htaccess


# Also, folks tend to use names such as .htpasswd for password
# files, so this will protect those as well.
#
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>

allan
03-28-2002, 02:32 PM
Originally posted by protector330

AllowOverride None


Needs to be changed to whatever you are going to allow to be overridden.

If you want to allow just passwords to be set, use:

AllowOverride AuthConfig

If you want more, take a look at the Apache configuration:

http://httpd.apache.org/docs-2.0/mod/core.html#allowoverride

protector330
03-28-2002, 02:41 PM
thank you very much not only for your help but also for the url! hope to have good bookmarks soon ... so I will not have to stress you all for such little things :stickout

thanks a lot!

allan
03-28-2002, 03:54 PM
Originally posted by protector330

thanks a lot!

No worries...glad to help.