Join the community today
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 Well-Known Member

    2,722
    242
    63
    May 31, 2014
    Ratings:
    +433
    Local Time:
    6:34 AM
    Nginx-1.13.x
    MariaDB 10.1.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

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    1:34 PM
    Nginx 1.13.x
    MariaDB 5.5
    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 Well-Known Member

    2,722
    242
    63
    May 31, 2014
    Ratings:
    +433
    Local Time:
    6:34 AM
    Nginx-1.13.x
    MariaDB 10.1.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

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    1:34 PM
    Nginx 1.13.x
    MariaDB 5.5
  5. cloud9

    cloud9 Premium Member Premium Member

    140
    54
    28
    Oct 6, 2015
    England
    Ratings:
    +75
    Local Time:
    4:34 AM
    1.11.x
    10.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