提交 de9bd34d authored 作者: Ras's avatar Ras

。。

上级 4815c5af
server { server {
listen 80; listen 80;
server_name arkui.com.cn;
#charset koi8-r; #charset koi8-r;
access_log /var/log/nginx/host.access.log main; access_log /var/log/nginx/host.access.log main;
error_log /var/log/nginx/error.log error; error_log /var/log/nginx/error.log error;
location / { location / {
root /usr/share/nginx/html; root /var/www/html/;
try_files $uri $uri/ @router;
index index.html index.htm; index index.html index.htm;
if (!-e \$request_filename) {
rewrite ^(.*)\$ /index.html?s=\$1 last;
break;
}
} }
location /nzwz { location /nzwz {
proxy_pass http://nzwz-server:8090; proxy_pass http://nzwz-server:8090;
proxy_set_header Host nzwz-system; proxy_set_header Host nzwz-system;
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
} }
access_log /var/log/nginx/access.log ;
} }
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论