server {
listen 80;
listen [::]:80;
server_name abc.com;
charset utf-8;
location / {
root html;
index index.html index.htm;
proxy_pass http://127.0.0.1:9999/;
}
location ~ .* {
proxy_pass http://127.0.0.1:9999;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
nginx配置请求springboot-admin
最新推荐文章于 2024-05-19 11:39:22 发布