#1  
Old 7th July 2009, 17:43
ashishpadave ashishpadave is offline
Junior Member
 
Join Date: Oct 2008
Location: Mumbai, India
Posts: 13
Thanks: 5
Thanked 0 Times in 0 Posts
Default Apache Directives and .htaccess

Hi,

A very peculiar problem. As soon as I add directives to the "Apache Directives" field of a website, the .htaccess in the site root stops working.

What might be problem.

the directive added is DocumentRoot /var/www/codebase/webnew/ I have also modified the vhost.conf.master and moved {HTTPD_INCLUDE} below DocumentRoot, so that the default values wont rewrite the "APACHE DIRECTIVE"

Ashish

Last edited by ashishpadave; 7th July 2009 at 18:33.
Reply With Quote
Sponsored Links
  #2  
Old 8th July 2009, 01:37
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

You can not set a document root directive in the apache directives field.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 8th July 2009, 01:44
ashishpadave ashishpadave is offline
Junior Member
 
Join Date: Oct 2008
Location: Mumbai, India
Posts: 13
Thanks: 5
Thanked 0 Times in 0 Posts
Default

hmm.. but the directive filed works. The thing that does not work is the .htaccess file in the web root.
Reply With Quote
  #4  
Old 8th July 2009, 01:48
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

As your path is not compatoble with a normal ispconfig installation, you can not use any .htaccess directives in these dierctoeries unless you specify the override options and permissions for these directories in the apache2 conf file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 8th July 2009, 01:55
ashishpadave ashishpadave is offline
Junior Member
 
Join Date: Oct 2008
Location: Mumbai, India
Posts: 13
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Thanks. Could you please help me, as to what I should add to the apache2 conf file and where?

Regards,

Ash
Reply With Quote
  #6  
Old 8th July 2009, 10:00
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Something like:

Code:
<Directory /var/www/codebase/webnew>
    Options +Includes -Indexes
    AllowOverride None
    AllowOverride Indexes AuthConfig Limit FileInfo
    Order allow,deny
    Allow from all
    <Files ~ "^\.ht">
    Deny from all
    </Files>
</Directory>
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
ashishpadave (8th July 2009)
  #7  
Old 8th July 2009, 12:55
ashishpadave ashishpadave is offline
Junior Member
 
Join Date: Oct 2008
Location: Mumbai, India
Posts: 13
Thanks: 5
Thanked 0 Times in 0 Posts
 
Default

Thank you!! works like a charm !
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
Apache wont serve my files anymore:( wotIsCmd Server Operation 2 17th July 2009 21:24
apache directives for register_globals - and .htaccess kterz Installation/Configuration 2 23rd June 2009 10:45
FTP cannot open remote folder!?! andysm849 Server Operation 23 17th October 2008 00:34
Can't start apache Musty Server Operation 12 9th March 2008 14:58
eGroupWare Install crudolphy General 28 5th June 2007 20:09


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


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