how to modify virtualhost in WHM?
Hi
I generally manage my Linux servers by logging in as root and doing everything from the command line (because I just do small stuff) but I've been asked to take over a WHM/CPanel Service with multiple accounts and I need to get them moved onto SSL. For the most part I've managed this with the Wordpress sites but I have a Ruby on Rails site running, with an auto SSL installed but when going to
-
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 -
Instructions on how to modify a users VHOST Modify Apache Virtual Hosts with Include Files - EasyApache 4 - cPanel Documentation 0 -
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 -
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 -
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 -
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 -
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 Henry0 -
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 Documentation0
Please sign in to leave a comment.
Comments
10 comments