Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

WHich template I should change?

Discussion in 'Workarounds and Optimization' started by septi, Dec 30, 2012.

  1. septi

    septi Active Member

    Joined:
    Dec 27, 2012
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    This is how typical virtual host entry on my httpd.conf

    Code:
    <VirtualHost 74.222.3.32:80>
        ServerName iphonegamesplaydoieut.superhostsite.com
        ServerAlias www.iphonegamesplay.com iphonegamesplay.com www.iphonegamesplaydoieut.superhostsite.com
        DocumentRoot /home/superhos/public_html/****this
        ServerAdmin webmaster@iphonegamesplaydoieut.superhostsite.com
        UseCanonicalName Off
        CustomLog /usr/local/apache/domlogs/iphonegamesplaydoieut.superhostsite.com combined
        CustomLog /usr/local/apache/domlogs/iphonegamesplaydoieut.superhostsite.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."
        ## User superhos # Needed for Cpanel::ApacheConf
        <IfModule mod_suphp.c>
            suPHP_UserGroup superhos superhos
        </IfModule>
        <IfModule !mod_disable_suexec.c>
            <IfModule !mod_ruid2.c>
                SuexecUserGroup superhos superhos
            </IfModule>
        </IfModule>
        <IfModule mod_ruid2.c>
            RUidGid superhos superhos
        </IfModule>
        ScriptAlias /cgi-bin/ /home/superhos/public_html/sdff/cgi-bin/
    
    
        # To customize this VirtualHost use an include file at the following location
        # Include "/usr/local/apache/conf/userdata/std/2/superhos/iphonegamesplaydoieut.superhostsite.com/*.conf"
    
    </VirtualHost>
    
    I want to get rid these 2 lines for all virtual host

    Code:
        CustomLog /usr/local/apache/domlogs/iphonegamesplaydoieut.superhostsite.com combined
        CustomLog /usr/local/apache/domlogs/iphonegamesplaydoieut.superhostsite.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."
    So I read here:
    Changes Contained within a VirtualHost Directive on section customTemplates

    Custom templates that will apply to all virtual hosts when rebuilding an existing Apache configuration

    file(s).

    Now I am stuck. Which one is "me". Do I use SSL? Am I using Apache 1 or 2? How do I know?
     
  2. septi

    septi Active Member

    Joined:
    Dec 27, 2012
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    I already created vhost.local. Then what? Rebuild httpd.conf? How?
     
  3. septi

    septi Active Member

    Joined:
    Dec 27, 2012
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator

    I don't even know what the hell does this mean. So i tell them to update something and then it gives me (/var/cpanel/conf/apache/local

    so we have /var/cpanel/templates/apache2/vhost.default

    and then we have /var/cpanel/conf/apache/local

    Which one is which>?

    So we have
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice