Nginx网关设置
欢迎使用Markdown编辑器
修改nginx.conf
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
location /user/ {
proxy_pass http://127.0.0.1:10002/;
}
location /sms/ {
proxy_pass http://127.0.0.1:10001/;
}
location = /50x.html {
root html;
}
}
include servers/*;
}