confixx and .htaccess and mod_rewrite (403)

I wonder how many have had the same problem. If your server is controlled by confixx, the use of mod_rewrite in your .htaccess is disabled and leads to a 403. So far, so good. The problem is thatt the httpd.conf includes a confixx_vhost.conf, which in turn switches off most of the good stuff you can do with a proper .htaccess. And this file is auto generated each time you change the config with confixx.

Changing the rules by adjusting the parent directory doesn’t work (such like a <Directory “/”>, because the more specific spec wins, and confixx_vhost.conf does something like:

<Directory "/home/www">
<Files ~ "^.ht">
deny from all
</Files>
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Options None
Options -FollowSymLinks -SymLinksIfOwnerMatch +Includes
</Directory>

The solution I found in the end is as follows: Before including the confixx_vhost.conf, include something like that in your httpd.conf:

<Directory "/home/www/web1">
    Options +FollowSymLinks +SymLinksIfOwnerMatch +Multiviews
    AllowOverride All
</Directory>

You have to repeat this for every user you have, but at least not for every single domain!

2 Responses to “confixx and .htaccess and mod_rewrite (403)”

Leave a Reply


uberdose 2.0

L-l-look at you, hacker.