Nginx配置,哪位大佬能给详细讲解一下?

Nginx配置,哪位大佬能给详细讲解一下?,第1张

Nginx配置,哪位大佬能给详细讲解一下?

server {

        listen       80;

        server_name  119.29.200.85;

location = /mesCar {

           root /usr/local/nginx1.17.0/html;

           index index.html index.htm;

           try_files $uri/index.html $uri/ /index.html;

        }

location ~ /mesCar.*.(gif|jpg|jpeg|png|js|html|css|eot|json|svg|woff|woff2|ttf)$ {

            root html;

            index index.html index.htm;

    try_files $uri $uri/ /index.html;   

        }

location = /YWMes {

            root /usr/local/nginx1.17.0/html;

            index index.html index.htm;

            try_files $uri/index.html $uri/ /index.html;

        }

location ~ /YWMes.*.(gif|jpg|jpeg|png|js|html|css|eot|json|svg|woff|woff2|ttf)$ {

            root html;

            index index.html index.htm;

    try_files $uri $uri/ /index.html;   

        }

location /YWMes {

proxy_pass http://localhost:8002;

}

location /mesCar {

proxy_pass http://localhost:8088;

}

}

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/3993390.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-10-22
下一篇 2022-10-22

发表评论

登录后才能评论

评论列表(0条)

保存