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.

HTTP redirection to HTTPS

Discussion in 'Workarounds and Optimization' started by UHLHosting, Jul 24, 2016.

  1. UHLHosting

    UHLHosting Well-Known Member

    Joined:
    Sep 26, 2014
    Messages:
    53
    Likes Received:
    4
    Trophy Points:
    8
    Location:
    Bratislava
    cPanel Access Level:
    Root Administrator
    Twitter:
    I run Apache 8080 with Nginx as a Proxy on 80. At the moment my nginx does not have ssl directives, yet all traffic from Apache on port 443 is just normally accepted.

    I have this scenario multiple sites with HTTPS, all work when I visit them over HTTP they automatically redirect me to HTTPS version, but one that redirects me to a cpanel default web site page . results can be seen here - Removed - while if I manually go to - Removed - version it works fine. If I disable the engintron the site will automatically be redirected to the right page, where can I look where can I start debugging this?

    If I take any other site for example - Removed - will work just fine redirection.

    Here are my nginx - Removed - config and - Removed -

    I am glad for any inputs, anything that could help me fix this asap.
     
    #1 UHLHosting, Jul 24, 2016
    Last edited by a moderator: Jul 25, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    670
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    I suggest reviewing the configuration data associated with that application to see what's triggering the redirect. You may also want to consider reaching out to that application's support team for additional information.

    Thank you.
     
  3. UHLHosting

    UHLHosting Well-Known Member

    Joined:
    Sep 26, 2014
    Messages:
    53
    Likes Received:
    4
    Trophy Points:
    8
    Location:
    Bratislava
    cPanel Access Level:
    Root Administrator
    Twitter:
    I did that already, nginx does not handle SSL at all via engintron. So all requests are taken from cpanel. While most of my ssl sites redirect just fine, there is one that does not. And I do not know why...
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    670
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Are you able to temporarily disable your custom Nginx application and switch to Apache to rule that out as the cause of the problem?

    Thank you.
     
  5. UHLHosting

    UHLHosting Well-Known Member

    Joined:
    Sep 26, 2014
    Messages:
    53
    Likes Received:
    4
    Trophy Points:
    8
    Location:
    Bratislava
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yes I did this, and without nginx backed up it works the redirection, with it I will get a cpanel page.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    670
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    This suggests the issue is with your third-party Nginx integration. Have you contacted the support team associated with the plugin you used to install Nginx to report this issue?

    Thank you.
     
Loading...

Share This Page