There is some kind of problem with my nginx. OK starts first, surfing through a proxy server is fast enough. But after a while 5 → 10 is visited later, the proxy server becomes slower and slower. Until it stops working. Even if I try to stop nginx using "-s stop", double check if there is any nginx.exe and restart nginx. It still does not work.
Nginx.exe is still working. The port is still in use.
I am running on Windows Server 2003 Enterprise Sp2 IIS6
This is a mistake that I read from the magazine.
2010/08/20 21:14:37 [debug] 1688
2010/08/20 21:14:37 [debug] 1688
2010/08/20 21:14:37 [debug] 1688
2010/08/20 21:14:37 [debug] 1688
2010/08/20 21:14:37 [debug] 1580
2010/08/20 21:14:37 [debug] 1580
2010/08/20 21:14:37 [debug] 1580
2010/08/20 21:14:37 [debug] 1580
2010/08/20 21:14:37 [debug] 1580
2010/08/20 21:14:37 [debug] 1580
2010/08/20 21:14:37 [debug] 1580
2010/08/20 21:14:38 [debug] 1688
2010/08/20 21:14:38 [debug] 1688
2010/08/20 21:14:38 [debug] 1688
2010/08/20 21:14:38 [debug] 1688
2010/08/20 21:14:38 [debug] 1688
2010/08/20 21:14:38 [debug] 1688
And this is the configuration file I wrote:
worker_processes 2;
error_log /app/nginx/logs/error.log debug;
events {
worker_connections 64;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
tcp_nodelay on;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 8k;
gzip_types text/plain;
upstream mongrel {
server 127.0.0.1:5000;
server 127.0.0.1:5001;
server 127.0.0.1:5002;
}
server {
listen 81;
server_name site.com;
root C:/app/sub/public;
index index.html index.htm;
try_files $uri/index.html $uri.html $uri @mongrel;
location @mongrel {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://mongrel;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
source
share