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.

SOLVED Index page doesn't work with nginx

Discussion in 'General Discussion' started by satsamira, Apr 17, 2018.

Tags:
  1. satsamira

    satsamira Member

    Joined:
    Apr 11, 2018
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    turkey
    cPanel Access Level:
    Root Administrator
    Hello ,
    I have a centos 6 server with cpanel and a nginx web server,
    I've now built an account for one domain on a board and a test index page inside the root of the site,
    But the test page does not display index.html or even index.php and shows this:
    502 Bad Gateway

    Please help me what should be done to show the html or php index page?
    thanks.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,276
    Likes Received:
    1,759
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @satsamira,

    Nginx is not currently supported with cPanel & WHM. Generally, the first step when troubleshooting an issue like this would be to disable Nginx and verify if the issue persists when it's disabled. If disabling it solves the issue, then you may want to report the problem to the developer or support team for the third-party plugin you used to install/enable Nginx. For instance, the 502 error message you reported is referenced on the Engintron support page at:

    [SOLVED] 502 Bad Gateway · Issue #526 · engintron/engintron

    Note that support for Nginx is tentatively planned for 2018, but no set time frames are currently available. We'll update the following feature requests as soon as new information is available:

    Stand-alone nginx supported as an alternative to Apache
    Nginx proxied to Apache (not standalone Nginx)

    Thank you.
     
  3. satsamira

    satsamira Member

    Joined:
    Apr 11, 2018
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    turkey
    cPanel Access Level:
    Root Administrator
    Thank you very much for helping me, this way I solved the problem. Be sure to use your help.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,276
    Likes Received:
    1,759
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm glad to see you were able to solve the issue. Thank you for sharing the outcome.
     
Loading...

Share This Page