EA4 - Apache http redirection to https
I would like to redirect all my http traffic to https and I'm following this:
RedirectSSL - Httpd Wiki
And would like to use the vhost method.
However using cpanel on a shared hosting server, I'm running into an issue with my web host.
I've sent them a request to modify the VirtualHost for a shared hosting account, since the mod_rewrite solution is in conflict with existing mod_rewrite rules and apache authentication.
However my host refused to follow my request with this response:
--
We cannot directly modify the apache configuration file's virtual host entry as it will cause issues during the next upgrades or apache configuration rebuild, Also a single configuration error will result in the break of all the domains hosted in the server. Your domain is in a shared server where other customers domains are also hosted, So we cant do this kind of configuration file changes.
--
They are running Running EA4 on
[LIST]
CENTOS 6.9 x86_64 virtuozzo
cPanel & WHM 64.0 (build 36)
Just wondering if this is really true what they are telling me.
Has Cpanel such a poor program logic, that the custom vhost entries will be lost with an apache upgrade or apache rebuild?
And that it may take down the whole server, just because of a custom entry in vhost of 1 domain ???
I find this very odd.
Any advise?
Thanks.
-
Hello, It's possible to customize a virtual host and ensure the changes are preserved. We document how to do this at: Modify Apache Virtual Hosts with Include Files - EasyApache 4 - cPanel Documentation Thank you. 0 -
Hi, nice to hear, that it is possible to preserve the entries in a single vhost entry for a custom domain on a shared server. What about their other statement: -- Also a single configuration error will result in the break of all the domains hosted in the server. -- Are they right? Because that is another reason why they refuse to do it. Thanks very much, Markus 0 -
Also a single configuration error will result in the break of all the domains hosted in the server.
Hello, Yes, if a specific entry is invalid, it will prevent a successful generation of the Apache configuration file. It's possible to test a new configuration after adding it via the following commands:/scripts/ensure_vhost_includes /scripts/rebuildhttpdconf
Thank you.0
Please sign in to leave a comment.
Comments
3 comments