Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mac OSX Apache ignoring .htaccess files

Status
Not open for further replies.

Foamcow

Programmer
Nov 14, 2002
6,092
GB
I'm using an Xserve as a web development server in house.

It's mostly been fine, but I recently had need to build a site that makes extensive use of .htaccess rewrites.

For some reason my .htaccess files are being ignored.

Out of the box, the Apache installed with OSX has
Code:
AllowOverride None

in the httpd.conf file

I have set this to
Code:
AllowOverride All

However my .htaccess files still seem to be ignored.

Can anyone offer any help here as to why the files are being ignored?

<honk>*:O)</honk>

Earl & Thompson Marketing - Marketing Agency Services in Gloucestershire
 
I did restart it yes.

It appears that perhaps Apache isn't using the directives in http.conf

I have a feeling that because I am using the 'out of the box' version of Apache that ships with OSX and have set up the server with the Server Admin control panel that it's using a different set of .conf files!

To test this I wrote a bogus line into httpd.conf and restarted Apache. It still worked fine.

Digging around I have found a few .conf files in /etc/httpd/sites These seem to relate to my control panel setup. Sadly I don't know enough to edit these within the terminal.

<honk>*:O)</honk>

Earl & Thompson Marketing - Marketing Agency Services in Gloucestershire
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top