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)
Result: Nothing.
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>
Restarted Apache2
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?
[edit]:
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:
Access forbidden!
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.
Error 403
82.169.45.174
Sat Dec 27 23:40:03 2008
Apache/2.2.10 (Linux/SUSE)
(index.php is read if it’s in the dir so can’t imagine it’s a permissions problem)