Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 27th March 2009, 23:41
quentusrex quentusrex is offline
Senior Member
 
Join Date: May 2008
Posts: 174
Thanks: 6
Thanked 11 Times in 7 Posts
Default

In the .htaccess file:

# Make Drupal handle any 404 errors.
ErrorDocument 404 /index.php
Reply With Quote
Sponsored Links
  #12  
Old 27th March 2009, 23:47
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,389
Thanks: 833
Thanked 5,486 Times in 4,318 Posts
Default

Then try to add:

<Directory /var/www/yoursite.com/web>
AllowOverride FileInfo
</Directory>

in the apache directives field of the website, you will have to replace the path with the path of your site.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #13  
Old 3rd April 2009, 00:16
andypl andypl is offline
Member
 
Join Date: Mar 2006
Location: Radom, Poland
Posts: 93
Thanks: 1
Thanked 1 Time in 1 Post
Default

Or if you want enable .htaccess for your client in some website put this in directives apache

<Directory /var/www/domain.ltd/web>
Options +Includes -Indexes -ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Reply With Quote
  #14  
Old 3rd April 2009, 09:12
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,389
Thanks: 833
Thanked 5,486 Times in 4,318 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #15  
Old 3rd April 2009, 19:30
astewart astewart is offline
Member
 
Join Date: Feb 2007
Posts: 95
Thanks: 1
Thanked 7 Times in 7 Posts
Default

Quote:
Originally Posted by andypl View Post
Or if you want enable .htaccess for your client in some website put this in directives apache

<Directory /var/www/domain.ltd/web>
Options +Includes -Indexes -ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

Thanks! That worked!
Reply With Quote
  #16  
Old 12th May 2009, 20:30
sirrus sirrus is offline
Junior Member
 
Join Date: May 2009
Location: Frankfurt am Main
Posts: 15
Thanks: 4
Thanked 1 Time in 1 Post
Send a message via ICQ to sirrus Send a message via Skype™ to sirrus
 
Thumbs down

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!!!

Regards,
Andreas

Last edited by sirrus; 12th May 2009 at 20:34.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VSFTPD can not close uploaded files rdmandel HOWTO-Related Questions 5 4th August 2008 16:04
add web site serr57 Installation/Configuration 18 13th April 2008 11:40
Apache2 server stopped working and fails restart without error chillifire Installation/Configuration 3 13th March 2008 16:26
vsftp - 550 Failed to change directory latcarf Server Operation 8 14th May 2006 02:05


All times are GMT +2. The time now is 15:57.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.