Page 1 of 1

.htaccess not working [solved]

PostPosted: Mon Jun 28, 2010 1:03 am
by Jusmee
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.

Re: .htaccess not working

PostPosted: Mon Jun 28, 2010 2:10 am
by cantlep
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

Re: .htaccess not working

PostPosted: Tue Jun 29, 2010 12:43 am
by Jusmee
Thanks you, that works well!