Appearance
Nginx 配置
nginx
server {
listen 443 ssl;
server_name zjkdongao.com;
ssl_certificate cert/zjkdongao.com.pem;
ssl_certificate_key cert/zjkdongao.com.key;
# 后端接口
location /api/admin {
# rewrite ^/api/admin(.*)$ /api$1 break;
proxy_pass http://0.0.0.0:7002;
index index.html index.htm;
}
# 管理后台接口
location /qq {
rewrite ^/qq(.*)$ $1 break;
proxy_pass http://0.0.0.0:7002;
index index.html index.htm;
}
# 静态服务器
location /images {
alias /var/web/fmm_zero_files/images/;
autoindex on;
}
# 电商管理后台
location /feimaomao/admin {
alias /var/web/commerce-vue/dist/;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
}