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;
}
}