Discussion in 'Developers' Forum' started by quentusrex, Mar 26, 2009.
How do I enable a client to have certain .htaccess overrides?
I also want to allow the .htaccess to turn on the modrewrite for drupal clean urls.
You can set the overrides either in your apache2.conf file, in the vhost master template or in the apache directives field.
Is there a way to do it per client? or if not how do I do it in the master?
No, just per site.
The master template is in /usr/local/ispconfig/server/conf/
How would I allow a client to override the ErrorDocuments in the .htaccess file? what do I change in the vhost.master?
You dont have to edit anything in .htaccess or vhost master to override the error documents. Just enable the checkbox in the site settings and the client can cahge the error pages in the error directory of ist website.
drupal wants to be able to handle its own error documents. How would I enable this ability? Drupal says to do it in the .htaccess file, but apache says it isn't allowed.
Which is the exact error message that you get in the apache error log of the site?
/var/clients/client2/web2/web/.htaccess: ErrorDocument not allowed here
In the .htaccess file:
# Make Drupal handle any 404 errors.
ErrorDocument 404 /index.php
Then try to add:
in the apache directives field of the website, you will have to replace the path with the path of your site.
Or if you want enable .htaccess for your client in some website put this in directives apache
Options +Includes -Indexes -ExecCGI
Allow from all
All harmless settings are already allowed for .htaccess, only if you want to give a client the ability to change settings in .htaccess that might be used to extend the permissions and performance of his webspace you will have to declare that manually. You should always be aware that this might enable the website owner to get more and higher resources from your server then the settings that you have set in ispconfig for the website.
Thanks! That worked!
You should never use "AllowOverride All" on a production system!!!
This enables you to change nearly everything in the config! For example renenable disabled functions, to break the open basedir jail and so on...
It is a really bad idea!!!
Separate names with a comma.