.htaccess not working [solved]

A place for users and developers of the Xataface to discuss and receive support.

.htaccess not working [solved]

Postby Jusmee » Mon Jun 28, 2010 1:03 am

I think this is an apache issue, but I have a .htaccess file with

Code: Select all
<FilesMatch "\.ini$">
Deny from all
</FilesMatch>


in it. However, I can still browse to my conf.ini contents. Can anyone quickly explain to me how to tell Apache to obey the .htaccess file?

If it helps, My mySQL database and Apache server are on my mythtv server. As I had that machine built and turned on all the time, and it already had mySQL, Apache, and php already installed, I just added my database to it, and put xataface there as well.
Last edited by Jusmee on Tue Jun 29, 2010 12:44 am, edited 1 time in total.
Jusmee
 
Posts: 22
Joined: Mon Feb 01, 2010 5:11 pm

Re: .htaccess not working

Postby cantlep » Mon Jun 28, 2010 2:10 am

Hi,

You'll need to have "AllowOverride" option set in your httpd.conf (within the <directory> section for your site) e.g.
Code: Select all
<Directory "/var/www/html/yoursite">
AllowOverride All
</Directory>


Once it's in and you reload the config, .htaccess will be honoured.

Rgds

Paul
cantlep
 
Posts: 172
Joined: Fri Mar 05, 2010 2:14 am

Re: .htaccess not working

Postby Jusmee » Tue Jun 29, 2010 12:43 am

Thanks you, that works well!
Jusmee
 
Posts: 22
Joined: Mon Feb 01, 2010 5:11 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 19 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved