Welcome to Centmin Mod Community
Register Now

IP.Board 502 BAD GATEWAY ERROR - when i am log in and forum set as offline

Discussion in 'Forum software usage' started by pamamolf, Sep 19, 2016.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,087
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    8:39 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Hi :)

    On latest IPB when i am as a user logged in and set the forum as offline when i refresh i am getting a 502 bad gateway....and i have to refresh to be ok :)

    Don't know if there is an IPB issue or Nginx/Php/Memcached issue....


    Don't know if it is related to cookies also....

    Just posting in case that something can be done on the Centminmod part.....

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,927
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    4:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Maybe @Jimmy or @Revenge or @cloud9 would have some ideas ?

    When you create a new nginx vhost domain via centmin.sh menu option 2 or menu option 22 or via /usr/bin/nv cli command line, you will create the Nginx vhost files and directories. You will get an outputted the path location where it will create the domain name's vhost conf file named newdomain.com.conf (and newdomain.com.ssl.conf if you selected yes to self signed SSL)
    • Nginx vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.conf
    • Nginx HTTP/2 SSL vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf
    • Nginx Self-Signed SSL Certificate Directory at /usr/local/nginx/conf/ssl/newdomain.com
    • Vhost public web root will be at /home/nginx/domains/newdomain.com/public
    • Vhost log directory will be at /home/nginx/domains/newdomain.com/log
    Please post the contents of /usr/local/nginx/conf/conf.d/newdomain.com.conf and if applicable /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf wrapped in CODE tags (outlined at How to use forum BBCODE code tags)
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    4,087
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    8:39 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    This is tested on default installation without ssl and the config files are as the default installation create them.....

    I only enable the try files options..... Nothing else....
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,927
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    4:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. cloud9

    cloud9 Premium Member Premium Member

    435
    118
    43
    Oct 6, 2015
    England
    Ratings:
    +218
    Local Time:
    6:39 AM
    1.25.3
    10.6.x
    Are you running anything like varnish cache ?

    Have you memcache running (setup in IPS)

    Are yo sure you haven't got ssl and non ssl running ? I had a problem with logging out when on SSL and some internal links went to non ssl

    What version of IPS ? 4.1.x ? or 3.4.x ?

    If running 4.1.x then try jimmy ipb config file but its for ssl so you will have to edit it