2

I am using Apache 2.2.17 for Windows. To set up .htaccess file, when I was going through httpd.conf file, I was not able to find the word called “AccessFileName”. I believe there should be a line like this: AccessFileName .htaccess. How can I solve this?

Here is the httpd.conf file.

halfer
  • 19,824
  • 17
  • 99
  • 186
Alfred
  • 21,058
  • 61
  • 167
  • 249

3 Answers3

2

The AccessFileName .htaccess is default. If it is not present, that is what it's using. If you would to like use a different filename, you can add the line in and replace .htaccess accordingly.

clmarquart
  • 4,721
  • 1
  • 27
  • 23
  • i want to set directory to htaccess file.. where should i include access file name in the configuration file?? I have posted my file.. – Alfred Apr 19 '11 at 15:36
2

I solved it by changing AllowOverride None to AllowOverride All inside <Directory>

Alfred
  • 21,058
  • 61
  • 167
  • 249
1

As you can read here

It says:

While processing a request the server looks for the first existing configuration file from this list of names in every directory of the path to the document, if distributed configuration files are enabled for that directory. For example:

AccessFileName .acl

before returning the document /usr/local/web/index.html, the server will read /.acl, /usr/.acl, /usr/local/.acl and /usr/local/web/.acl for directives, unless they have been disabled with

<Directory> AllowOverride None </Directory>

Cristian
  • 327
  • 2
  • 9