The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache 2 with mod_cband

Discussion in 'EasyApache' started by lukaschemp, May 16, 2007.

  1. lukaschemp

    lukaschemp Active Member

    Joined:
    Nov 6, 2006
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Does anybody know which file create vhosts in httpd.conf or where is structure file of added vhosts, I installed module mod_cband for Apache 2 and for each vhost when I add account in WHM I want to add some rules of it and I want do that automatically when WHM create vhost for httpd.conf, I want result like this:

    <VirtualHost IP.IP.IP.IP>
    ServerAlias www.domain.com
    ServerAdmin webmaster@domain.com
    DocumentRoot /home/domain/public_html
    ServerName domain.com

    SuexecUserGroup domain domain
    CustomLog /usr/local/apache/domlogs/domain.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."
    CustomLog /usr/local/apache/domlogs/domain.com combined
    ScriptAlias /cgi-bin/ /home/domain/public_html/cgi-bin/

    CBandSpeed 1024 15 50
    CBandRemoteSpeed 40kb/s 5 10

    <Location /cband-status>
    SetHandler cband-status
    </Location>
    <Location /cband-status-me>
    SetHandler cband-status-me
    </Location>


    </VirtualHost>

    Anybody have any ideas or know where is the file of WHM where is structure of added vhost by WHM when account have been creating?
     
  2. sparksupport

    sparksupport Member

    Joined:
    Apr 30, 2006
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    The Directory contains all the http-vhost templates, ~cpanel/etc/httptemplates/
    specifically check the Template file, "/usr/local/cpanel/etc/httptemplates/apache1/default"
     
Loading...

Share This Page