apache2.conf won't be stored after applying

Discussion in 'Installation/Configuration' started by Melchior, Jul 20, 2007.

  1. Melchior

    Melchior New Member

    hi there,
    I'm new to ISPConfig and little bit confused how it is dealing the apache2.conf in general.

    I'm on debian etch installed by Perfect setup and everything is working fine expecting the server settings I do on the ISP-Config-Panel. When I setup f.e. a new httpd User it won't be stored in the apache2.conf. (only in db-table)

    is this quite normal? Before I realized this behavieur, I changed my apache2.conf manually because I've had to append new security settings into it...perhaps i destroyed sth there?

    I still searched the forum and tried things like
    "/root/ispconfig/php/php /root/ispconfig/scripts/writeconf.php"

    after that all configs in /etc/apache2 gets rewritten but at all changes in the panel won't get assumed :(

    anybody there who can help me understanding this?
    would be so excellent :D

    regards and thx!,
    melchior
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig never writes to apache2.conf. ISPConfig has its own config file named Vhost_ispconfig.conf, which is included in apache2.conf.
     
  3. Melchior

    Melchior New Member

    hey Till,
    on the bottom of my apache2.conf I found the following rows I didn't append manually.

    if ispconfig won't apply changes like apaches username and usergroup (like www-root) on webpanel what need does it have?

    thx and greets,
    melchior

    Code:
    ##############ispconfig_log###############
    LogFormat "%v||||%b||||%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
    CustomLog "|/root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d" combined_ispconfig
    
    LogFormat "%V %h %t %{UNIQUE_ID}e \"%r\" %>s %X | %I %O | %<{mod_security-time1}n %<{mod_security-time2}n %<{mod_security-time3}n %D" mperformance
    CustomLog /var/log/apache2/modsec_performance.log mperformance
    	
    <Directory /var/www/*/web>
        Options +Includes -Indexes
        AllowOverride None
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
        <Files ~ "^\.ht">
        Deny from all
        </Files>
    </Directory>
    
    <Directory /var/www/*/user/*/web>
        Options +Includes -Indexes
        AllowOverride None
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
        <Files ~ "^\.ht">
        Deny from all
        </Files>
    </Directory>
    
    <Directory /var/www/*/cgi-bin>
        Options ExecCGI -Indexes
        AllowOverride None
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
        <Files ~ "^\.ht">
        Deny from all
        </Files>
    </Directory>
    
    Include /etc/apache2/vhosts/Vhosts_ispconfig.conf
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The linas are written by the installer just once and not by the ISPConfig daemon. The vhosts itself are written to the file /etc/apache2/vhosts/Vhosts_ispconfig.conf

    Please have a look at the perfect setup guide (on the ISPConfig documenatation page) for your linux distribution to see which configuration for apache is needed.
     
  5. Melchior

    Melchior New Member

    ah cool, thx.
    I've used the Perfect Setup Guide. I only asked myself what use "httpd User" in server-settings panel has

    marco
     

Share This Page