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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

EA4 - Apache http redirection to https

Discussion in 'EasyApache' started by markusa, Sep 12, 2017.

  1. markusa

    markusa Member

    Joined:
    Mar 26, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    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
    • 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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,371
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  3. markusa

    markusa Member

    Joined:
    Mar 26, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    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
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,371
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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:

    Code:
     /scripts/ensure_vhost_includes
    /scripts/rebuildhttpdconf
    Thank you.
     
Loading...

Share This Page