Browse Source

修改nginx配置

master
liuchen 10 months ago
parent
commit
c8c39206b7
  1. 10
      nginx.conf

10
nginx.conf

@ -1,12 +1,6 @@
#user root; #user root;
worker_processes 2; worker_processes 2;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events { events {
worker_connections 1024; worker_connections 1024;
} }
@ -38,9 +32,7 @@ http {
server { server {
listen 25100; listen 25100;
server_name_in_redirect off; server_name_in_redirect off;
server_name dev.ccwin-in.com; server_name dev.ccwin-in.com localhost;
access_log /opt/sfms3.0/access.log main;
error_log /opt/sfms3.0/error.log;
location /api/ { location /api/ {
proxy_pass http://sfms3.0/; proxy_pass http://sfms3.0/;
proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header; proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header;

Loading…
Cancel
Save