Skip to main content
We are aware of an issue after updating to cPanel versions 11.110.0.65, 11.126.0.21, or 11.128.0.11, some cPanel plugins or features are no longer functioning properly including WP Toolkit. Please see the following article for more information and updates:
Update to latest cPanel 110, 126, or 128 versions removes "addonfeatures" directory.

how to modify virtualhost in WHM?

Comments

10 comments

  • HenryMehta
    I think I've worked out the issue, but don't know how to fix. The issue is httpd.conf has the line `DocumentRoot /home/mysite/public_html` but it should be `DocumentRoot /var/www/mysite/production/current/public` Plastered around httpd.conf it says not to edit it because changes will be overwritten, so I need to know where to make the changes so they aren't. Any help most welcome
    0
  • dalem
    Instructions on how to modify a users VHOST Modify Apache Virtual Hosts with Include Files - EasyApache 4 - cPanel Documentation
    0
  • HenryMehta
    So I've created the ssl conf file in the directory as per: `/etc/apache2/conf.d/userdata/ssl/2_4/user/domain/includename.conf ` and restarted the server but the file isn't being included (or is being overwritten by what was originally there). Could you advise what may be happening?
    0
  • rpvw
    v68 - ea4 I can't help thinking there is an easier way of achieving what you are trying to do Guide to Ruby Installations - cPanel Knowledge Base - cPanel Documentation Ruby on Rails - Version 68 Documentation - cPanel Documentation
    0
  • cPanelMichael
    Hello, The previous post offers the better approach. However, to answer your question, you won't see the names of the custom include files in the Apache configuration file. Apache is configured to automatically detect the custom includes from the appropriate directories when they are added. Thank you.
    0
  • HenryMehta
    Hi rpvw, config.force_ssl = true will force Ruby to use the https settings but if they're wrong it won't work. Henry
    0
  • HenryMehta
    Hello, The previous post offers the better approach. However, to answer your question, you won't see the names of the custom include files in the Apache configuration file. Apache is configured to automatically detect the custom includes from the appropriate directories when they are added. Thank you.

    Hi, I don't understand why it is not working if this is the case. If I edit the httpd.conf file directly then the sites use the HTTPS. When I leave the same code in the include files it does not. I am missing something but I do not know what Henry
    0
  • HenryMehta
    Instructions on how to modify a users VHOST
    0
  • rpvw
    The thing is I do not have a `/etc/apache2` directory .....

    Are you sure you are actually using EasyApache 4 ? If your server is still using EasyApache 3, you may need to follow the instructions at Advanced Apache Configuration - EasyApache - cPanel Documentation
    0
  • HenryMehta
    Are you sure you are actually using EasyApache 4 ? If your server is still using EasyApache 3, you may need to follow the instructions at
    0

Please sign in to leave a comment.