PDA

View Full Version : How to make htaccess works for all clients?


thenicespider
9th April 2009, 15:53
Rather than make <Directory /home/www/clients/clientX/webX> for every clients, is there a way to make the htaccess allowed for every clients?

if I write <Directory /home/www/clients/*> then ... is it secure?

till
10th April 2009, 11:16
.htaccess is allowed for all clients. Only .htaccess restrictions that allows clients to override the limits of the site are not allowed. If you dont like the presets, change the master template for the vhosts.

Ovidiu
2nd May 2009, 17:07
just wondering about the issues I had in a similar thread: wordpress needs mod_rewrite activated, which was active, still I needed:

<Directory "/var/www/clients/client1/web2/">
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>

to allow the usage of rewrites within .htacces?

see also this thread: http://howtoforge.com/forums/showthread.php?t=34428

till
2nd May 2009, 22:34
Please take a look here:

http://www.howtoforge.com/forums/showthread.php?t=33805

By the way, changing to allow override all is really not recommended as this opens up your server to modifications by your users.

Ovidiu
2nd May 2009, 22:53
thx. will continue posting the other thread, weird I didn't find it, I even googled for this specific error. THx. for pointing that thread out.