generator-hcy-system
Version:
hcy system layout and pages
39 lines (33 loc) • 884 B
Plain Text
# 后端接口代理地址
upstream api_server {
server 103.226.121.16:8383;
}
server {
listen 80;
server_name localhost;
underscores_in_headers on;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
location /child/busniess {
root html;
index index.html index.htm;
#try_files $uri $uri/ /child/busniess/index.html;
}
location /manager/api/ {
rewrite ~/manager/api/(.*)$ /$1 break;
proxy_pass http://api_server/manager/api/;
proxy_set_header Host $host;
proxy_pass_request_headers on;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 300;
proxy_send_timeout 300;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}