Current time: 11-22-2024, 03:48 PM Hello There, Guest! (LoginRegister)


Post Reply 
Generation of Apache ispcp.conf
Author Message
MasterTH Offline
Member
***

Posts: 570
Joined: Feb 2009
Reputation: 4
Post: #1
Generation of Apache ispcp.conf
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??
03-15-2010 09:05 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Generation of Apache ispcp.conf
/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
03-15-2010 11:16 AM
Visit this user's website Find all posts by this user Quote this message in a reply
MasterTH Offline
Member
***

Posts: 570
Joined: Feb 2009
Reputation: 4
Post: #3
RE: Generation of Apache ispcp.conf
also the normal path of htdocs and cgi-bin?
03-15-2010 06:17 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Generation of Apache ispcp.conf
(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
(This post was last modified: 03-15-2010 06:53 PM by joximu.)
03-15-2010 06:52 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)