长安公司网站建设百度搜索网址
注:1.通用配置只支持二段路由,二段及以上依然需要单独进行配置
2.所有location后面的路径,都需要使用通配符进行配置
location ^~ /phdp/ {try_files $uri $uri/ /phdp/index.html;index ruoyi.html index.html index.htm;}location ^~ /phdp-api/ {client_max_body_size 20m;proxy_set_header Host $http_host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header REMOTE-HOST $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_pass http://xxx:xxx/;} location ~ ^/(?<project>.+)/ {try_files $uri $uri/ /$project/index.html;index ruoyi.html index.html index.htm;}