#1  
Old 7th July 2009, 16: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 17:33.
Reply With Quote
Sponsored Links
  #2  
Old 8th July 2009, 00:37
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 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, 00: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, 00:48
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 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, 00: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, 09:00
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 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, 11: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 20:24
apache directives for register_globals - and .htaccess kterz Installation/Configuration 2 23rd June 2009 09:45
FTP cannot open remote folder!?! andysm849 Server Operation 23 16th October 2008 23:34
Can't start apache Musty Server Operation 12 9th March 2008 13:58
eGroupWare Install crudolphy General 28 5th June 2007 19:09


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


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