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.

Repoint Apache configuration through cPanel

Discussion in 'EasyApache' started by nicox, Jul 24, 2014.

  1. nicox

    nicox Registered

    Joined:
    Jul 24, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    How do I repoint apache configuration for a Virtualhost/SSL Virtualhost in cPanel?

    Basically we would like to keep our current configuration since it's running a live site, and include a new code on the same server, repoint apache to it, but still keep and not overwrite the current
    Code:
    httpd.conf
    .

    Code:
    httpd.conf
    file I get the description:

    Code:
           # To customize this VirtualHost use an include file at the following location
            # Include "/usr/local/apache/conf/userdata/std/2_2/username/domain.com/*.conf"
        
        </VirtualHost>
        
        # DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
        
        # SSL
        # DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
    The full path for
    Code:
    /usr/local/apache/conf/userdata/std/2_2/username/domain.com/*.conf
    is not created. And if I'm to include a different
    Code:
    htdocs
    path in the
    Code:
    .conf
    file I'm not sure what to include.
     
    #1 nicox, Jul 24, 2014
    Last edited by a moderator: Jul 24, 2014
  2. Shavaun

    Shavaun Well-Known Member

    Joined:
    Aug 15, 2013
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    The quickest, simplest, method for this will depend on your exact configuration.
    You may find the information you are looking for here: https://documentation.cpanel.net/display/EA/Advanced+Apache+Configuration
    and here: https://documentation.cpanel.net/di...anIrunEasyApacheandkeepmycustomconfiguration?

    I personally recommend that you adjust your existing configuration so that it uses one of the methods in those documents, and then going forward you won't have any issues running EasyApache in WHM. This will also prevent issues from happening when you create additional accounts or domains in cPanel.
     
Loading...

Share This Page