So I want to enable .htaccess files which for some (probably security related) reason is disabled.
I found this site claiming to have the solution and executed the following commands as root.
- a2enmod rewrite (it put rewrite at the end of APACHE_MODULES)*]rcapache2 restart (instead of /etc/init.d/apache2 restart)
(tried to do the “run SuSEconfig to update the apache configuration files” … but suseconfig isn’t an existing command it seems)
So I kept looking and found some post about about the same problem and thought bingo… that must be the solution…
So I edited /etc/apache2/httpd.conf to look like this:
RewriteEngine On # forbid access to the entire filesystem by default <Directory /> Options None AllowOverride All Order deny, allow Deny from all </Directory>
Result: Nothing again.
So what’s going on? how do I enable it… and how many steps did I take for nothing and might even have to undo?
I tested by making a test directory file with a bunch of files and a .htaccess file who’s contents are: (which should give an error of sort as I understand it)
Options +Indexes dsadsad IndexOptions +FancyIndexing hjvbhjvjhvjv
I’m getting the result:
You don’t have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Sat Dec 27 23:40:03 2008
(index.php is read if it’s in the dir so can’t imagine it’s a permissions problem)