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!

Need to update VHost file

Discussion in 'General Discussion' started by Success1, Jun 8, 2017.

  1. Success1

    Success1 Member

    Sep 8, 2016
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Pardon the noobie questions as I'm a long time Windows guy struggling in a Linux world.

    Anyway, we are trying to configure Mattermost on a seperate cPanel user dedicated to mattermost. We had it up and running without ssl and I believe my contractor said it was using GoLang webserver.

    Anyway, I enabled SSL with Lets's Encrypt in WHM and everything stopped working.

    My contractor says we need to update the apache vhost files and I'm not sure where that is.

    Question, where are the VHost files located so we can edit either manually or thru WHM (Preferred).
  2. cPanelJasonT

    cPanelJasonT Level 2 Technical Analyst
    Staff Member

    Oct 21, 2014
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    The term vhost is a shorthand for VirtualHost, which is a directive in the Apache web server configuration. The VirtualHost code block is the section of the apache configuration file which dictates the hosting environment for a cPanel users' hosted content. cPanel manages the apache configuration to such a degree that when something is changed in the cPanel users' accounts, the apache configuration file is rebuilt. This means that any edits to the main apache configuration file will be overwritten when account details are changed.

    However, there are ways to include information within the Global Apache confiuration, or with a Virtualhost directive block by adding it to the Apache confiuration via include files. The documentation for adding these includes is available here:
    Modify Apache Virtual Hosts with Include Files - EasyApache 4 - cPanel Documentation

    When these includes are added, the configuration changes won't be overwritten with other updates to configuration files.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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