ispCP - Board - Support
Generation of Apache ispcp.conf - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: Suggestions (/forum-2.html)
+--- Thread: Generation of Apache ispcp.conf (/thread-10008.html)



Generation of Apache ispcp.conf - MasterTH - 03-15-2010 09:05 AM

Hi guys,

i'm thinking about the generation process of the ispcp.conf of apache.
I've got a server which has a lot of customers with different settings for the apache configuration, sometimes just the path is different or something else.

My opinion is, it would be very easy if the daemon looks into the template path of apache-config if there's a file called domain.tld.tpl, when the file exists he takes this file, otherwise he takes the default.

Is this possible? And wouldn't this be easier for custom settings in apache-conf for a spec. domain?
I got this problem. Added a spec. configuration, copied the config-file into working-folder. But everytime i add a subdomain the whole config-file is regenerated and all my settings are deleted. So i thought about this way to handle this problem.

What do you think??


RE: Generation of Apache ispcp.conf - joximu - 03-15-2010 11:16 AM

/etc/apache2/ispcp/domain.conf

put everything in there - it's included in the domain-config (you can overwrite everything you want...).

Theese files are not overwritten by ispcp.

/J


RE: Generation of Apache ispcp.conf - MasterTH - 03-15-2010 06:17 PM

also the normal path of htdocs and cgi-bin?


RE: Generation of Apache ispcp.conf - joximu - 03-15-2010 06:52 PM

(03-15-2010 06:17 PM)MasterTH Wrote:  also the normal path of htdocs and cgi-bin?

why not?

eg in ispcp.conf:

Code:
<VirtualHost 1.2.3.4:80>

    <IfModule suexec_module>
           SuexecUserGroup vu2005 vu2005
    </IfModule>

    ServerAdmin     webmaster@dom3.net
    DocumentRoot    /var/www/virtual/dom3.net/htdocs

    ServerName      dom3.net
    ServerAlias     www.dom3.net dom3.net *.dom3.net

    Alias /errors   /var/www/virtual/dom3.net/errors/
...
    Include /etc/apache2/ispcp/dom3.net.conf
</VirtualHost>

and in ispcp/dom3.net.conf:
Code:
# changes to the original
    DocumentRoot    /var/www/virtual/dom3.net/htdocs/here/or/there
    ServerAlias     www.dom3.net *.dom3.net here.domain.tld

    ScriptAlias /cgi-bin/ /var/www/virtual/dom3.net/cgi-bin4/
    <Directory /var/www/virtual/dom3.net/cgi-bin4>
        AllowOverride AuthConfig
        Order allow,deny
        Allow from all
    </Directory>

(there wthout the <VirtualHost> or course...)

/J