Apache Directives and .htaccess

Discussion in 'Installation/Configuration' started by ashishpadave, Jul 7, 2009.

  1. ashishpadave

    ashishpadave New Member


    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"

    Last edited: Jul 7, 2009
  2. till

    till Super Moderator

    You can not set a document root directive in the apache directives field.
  3. ashishpadave

    ashishpadave New Member

    hmm.. but the directive filed works. The thing that does not work is the .htaccess file in the web root. :confused:
  4. till

    till Super Moderator

    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.
  5. ashishpadave

    ashishpadave New Member

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


  6. till

    till Super Moderator

    Something like:

    <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
  7. ashishpadave

    ashishpadave New Member

    Thank you!! :) works like a charm !

Share This Page