AccessFileName in httpd.conf - problem

Problems with the Linux version of XAMPP, questions, comments, and anything related.

AccessFileName in httpd.conf - problem

Postby almalino » 22. October 2010 00:21

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?
almalino
 
Posts: 8
Joined: 20. October 2010 23:27

Re: AccessFileName in httpd.conf - problem

Postby JonB » 22. October 2010 00:28

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
:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: AccessFileName in httpd.conf - problem

Postby JonB » 22. October 2010 00:45

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)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: AccessFileName in httpd.conf - problem

Postby almalino » 22. October 2010 18:10

Thank you! this worked!

Though, in Linux the file is located here:
/opt/lampp/etc/extra/httpd-default.conf
almalino
 
Posts: 8
Joined: 20. October 2010 23:27

Re: AccessFileName in httpd.conf - problem

Postby JonB » 22. October 2010 20:53

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
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 40 guests