Overriding the vhost file configuration

Discussion in 'Installation/Configuration' started by vaio1, Apr 7, 2011.

  1. vaio1

    vaio1 ISPConfig Developer ISPConfig Developer

    Hi guys,

    is there a way to override by ISPConfig the paramenters set in the vhost file like the Directory path and the DocumentRoot:

    FROM

    Code:
    <Directory /var/www/mydomain.com/>
        AllowOverride None
        Order Deny,Allow
        Deny from all
    </Directory>
    
    <VirtualHost *:80>
          DocumentRoot /var/www/mydomain.com/web/
    </VirtualHost>
    
    TO

    Code:
    <Directory /var/www/mydomain.com/public>
        AllowOverride None
        Order Deny,Allow
        Deny from all
    </Directory>
    
    <VirtualHost *:80>
          DocumentRoot /var/www/mydomain.com/web/public
    </VirtualHost>
    
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can do that in the apache directives field of the website.
     
  3. vaio1

    vaio1 ISPConfig Developer ISPConfig Developer

    Have I add these lines in the apache directives?

    Code:
    
    <Directory /var/www/mydomain.com/public>
        AllowOverride None
        Order Deny,Allow
        Deny from all
    </Directory>
    
    DocumentRoot /var/www/mydomain.com/web/public
    
    
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    yes, just add these lines.
     

Share This Page