Welcome! Log In Create A New Profile

Advanced

Nginx 504 Bad Gateway Problem (Website freezing)

Posted by farukest 
Nginx 504 Bad Gateway Problem (Website freezing)
July 15, 2014 02:29PM
I'm using nginx with WT-NMP , i'm publishing important videos from my website and i have a lots of user. Sometime my website is freezing and anyonce can enter the website. I can't even enter my localhost. If i deny all permission on nginx.conf and change to "deny all" and add my ip "allow my ip" everything is fixing i can enter my localhost, and i can enter with my ip to my website. But if i try to let everyone with "allow all" my website is again freezing. I tried to add "limit_conn" etc but it did not work. Hope you can help me. I'm in bad position i need help , I'm open to all ideas.

Note: It is not about connection speed. I checked network traffic.
Re: Nginx 504 Bad Gateway Problem (Website freezing)
July 15, 2014 02:49PM
show us 'nginx -V ' and your nginx.conf
Re: Nginx 504 Bad Gateway Problem (Website freezing)
July 15, 2014 04:04PM
Hi Thank you for your care. what is "Nginx-V" I couldn't understand. I attached my complete conf file and also nginx.conf. I'm waiting for your answer thanks in advance



Edited 1 time(s). Last edit at 07/15/2014 04:05PM by farukest.
Attachments:
open | download - nginx.conf (10.1 KB)
open | download - conf.rar (7.1 KB)
Re: Nginx 504 Bad Gateway Problem (Website freezing)
July 15, 2014 04:24PM
These options:
worker_processes auto;
worker_connections 8096;
worker_rlimit_nofile 100000;

Don't do anything with the original nginx version, so which nginx version are you using ?

When the website freezes what is process_explorer saying ?

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Nginx 504 Bad Gateway Problem (Website freezing)
July 15, 2014 04:41PM
I'm using nginx version 1.7.1 with WT-NMP. I was using these configuration with nginx 1.5.11 but i did not change them when i upgrade the nginx to 1.7.1 . About process_explorer (If you mean windows task manager-process ) nothing i can see about the problem just 13 units nginx.exe process.
I tried everthing still i'm trying but whenever i change "deny all" to "allow all" i dont even enter localhost. i can enter localhost only one second when i open the nginx, and after 1 second it is freezing forever. By the way thank you for your care. I'm waiting for your answer.
Re: Nginx 504 Bad Gateway Problem (Website freezing)
July 15, 2014 05:07PM
13 nginx processes, well read this first http://nginx.org/en/docs/windows.html
Then go to http://nginx-win.ecsds.eu/ and replace nginx with this version.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Nginx 504 Bad Gateway Problem (Website freezing)
July 15, 2014 05:41PM
I checked nginx_error.log than i realized that one ip continuously is sending requests to my website (880k Post request), i denied this ip, now my website is working good. I really wonder how to replace your nginx with my nginx. Because i know that i can not use limit ip rules e.g "limit_conn_zone" with my nginx without using "master_process off", so you are right i need to replace it.

Which nginx should i download in http://nginx-win.ecsds.eu/ . "nginx 1.7.4.1 RedKnight.zip " ? and one more question. I have a nginx file in "WT-NMP/bin/nginx-1.5.11" and i have conf file in "WT-NMP/conf/..." is it enough to replace nginx in the link with "WT-NMP/bin/nginx-1.5.11".

If you answer to me these questions. I would be really happy. Thanks in advance.



Edited 1 time(s). Last edit at 07/15/2014 05:42PM by farukest.
Re: Nginx 504 Bad Gateway Problem (Website freezing)
July 16, 2014 02:25AM
You can replace nginx.exe with nginx_basic.exe, if you require more like Lua you need nginx.exe

---
nginx for Windows http://nginx-win.ecsds.eu/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 99
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready