代码拉取完成,页面将自动刷新
server {
listen 80;
server_name ×××.×××.×××.com;
location / {
try_files $uri $uri/ /index.html;
alias /usr/share/nginx/html/demo/sx-ui/;
index index.html index.htm;
}
location /admin {
try_files $uri $uri/ /admin/index.html;
alias /usr/share/nginx/html/demo/sx-admin-ui/;
index index.html index.htm;
}
location /api/admin/ {
proxy_pass http://172.17.0.1:11117/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
}
location /api/www/ {
client_max_body_size 100m;
proxy_pass http://172.17.0.1:11116/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
}
}
nginx 同server_name下配置两个vue项目
server {
listen 80;
server_name ×××.×××.×××.com;
location / {
root /project/bydps/admin;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
location /pda {
alias /project/bydps/pda;
index index.html index.htm;
try_files $uri $uri/ /pda/index.html;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。