Page 1 of 1

AccessFileName in httpd.conf - problem

PostPosted: 22. October 2010 00:21
by almalino
In XAMPP 1.7.1 file

/opt/lampp/etc/httpd.conf doesn't have AccessFileName directive after installation. I guess it means that .htaccess file name is used by default.

Now, I'm trying to place the directive into httpd.conf as follows

AccessFileName .htaccessocal

Then I restart XAMPP. But it still pick up .htaccess file. Any ideas why and how to fix that?

Re: AccessFileName in httpd.conf - problem

PostPosted: 22. October 2010 00:28
by JonB
Hmmm -

try changing it to .htlocal --

Its possible that the regex that parses it is matching from the 'front' and not evaluating the whole expression,

Also make sure that is the ONLY refernece to AccessFileName.

Good Luck
:)

Re: AccessFileName in httpd.conf - problem

PostPosted: 22. October 2010 00:45
by JonB
OK my last comment was on target - I missed it (the AccessFileName Directive)

fix is in apache/conf/extra/httpd-default.conf

change the value there - my string search missed it last time :oops:

I just tested and it seems to work as predicted -

(big smile)

8)

Re: AccessFileName in httpd.conf - problem

PostPosted: 22. October 2010 18:10
by almalino
Thank you! this worked!

Though, in Linux the file is located here:
/opt/lampp/etc/extra/httpd-default.conf

Re: AccessFileName in httpd.conf - problem

PostPosted: 22. October 2010 20:53
by JonB
I'm glad it worked. Thanks for the location info - I don't run XAMPP on my Linux servers, so I don't have a frame of reference - but Its a core Apache feature so I knew it would work at some point, LOL. I use it when switching client sites from one host to another, so I knew it was the ticket. It solves that host-specific .htaccess things just dandy.

Good Luck