# the user nobody;
Worker_processes 1;
# error_log logs/error. The log;
# error_log logs/error log notice;
# error_log logs/error. The log info;
# pid logs/nginx. Pid;
Events {
Worker_connections 1024;
}
HTTP {
. Include the mime types;
default_type application/octet-stream;
# log_format main '$remote_addr - $remote_user [$time_local] "$request"'
# '$$body_bytes_sent status "$http_referer"'
# '" $http_user_agent "" $http_x_forwarded_for"';
# access_log logs/access. Log the main;
sendfile on;
# tcp_nopush on;
# keepalive_timeout 0;
Keepalive_timeout 65;
Server {
listen 80;
Server_name localhost.
#charset koi8-r;
# access_log logs/host. Access. Log the main;
The location/{
The root HTML;
The index index. HTML index. HTM;
Try_files $$uri uri//index. HTML.
}
The location ^ ~/LuckDrawSys/{
Proxy_next_upstream off;
Proxy_connect_timeout 90;
Proxy_send_timeout 90;
Proxy_read_timeout 90;
Proxy_pass http://172.24.100.58:8080;
}
The location ^ ~/WeChatVIPSystem/{
Proxy_next_upstream off;
Proxy_connect_timeout 90;
Proxy_send_timeout 90;
Proxy_read_timeout 90;
Proxy_pass http://172.24.100.58:8080;
}
404/404 # error_page. HTML;
# redirect server error pages to the static page/50 x) HTML
#
Error_page 504/50, 500, 502, 503 x. HTML;
Location=/50 x) HTML {
The root HTML;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
# the location ~ \. PHP ${
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
# the location ~ \. PHP ${
# root HTML;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index. PHP;
# fastcgi_param SCRIPT_FILENAME/scripts $fastcgi_script_name;
# include fastcgi_params;
#}
# to deny access to...htaccess files, if the Apache 's document root
# concurs with nginx 's one
#
# the location ~/\. Ht {
# deny all;
#}
}
# another virtual host using mix of IP -, name, and port - -based configuration
#
# server {
# 8000; listen
# listen somename: 8080;
# server_name somename alias another. Alias;
# the location/{
# root HTML;
# index index. HTML index. HTM;
#}
#}
# HTTPS server
#
# server {
443 the SSL # listen;
# server_name localhost.
# ssl_certificate cert. Pem;
# ssl_certificate_key cert. Key;
# ssl_session_cache Shared: SSL: 1 m;
# ssl_session_timeout 5 m;
# ssl_ciphers HIGH:! aNULL:! MD5;
# ssl_prefer_server_ciphers on;
# the location/{
# root HTML;
# index index. HTML index. HTM;
#}
#}
}
After the baidu, found the two solutions,
1, in the context, the local add
Proxy_connect_timeout 90;
Proxy_send_timeout 90;
Proxy_read_timeout 90;
2, in local also added
Proxy_next_upstream off;
Try later still no solution to the problem,
Baidu again, find a
Server address [fail_timeout=30 s]
But because I NGINX beginner, don't know where this sentence to be loaded completely,,,
CodePudding user response:
The building Lord later how to solve?