标签:跳转 localhost tab 配置 top uri host users write
crm-view
|-- view
|-- user.html
C:\Users\Administrator\Desktop\CRM系统\crm-view
找到nginx安装目录打开conf/nginx.conf添加如下节点配置
#vue工程跳转
server {
#访问端口
listen 8081;
server_name localhost;
?
?
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
?
# 页面跳转
root C:\Users\Administrator\Desktop\CRM系统\crm-view;
index index.html;
?
?
location / {
try_files $uri $uri/ @router;
index index.html;
}
?
?
location @router {
rewrite ^.*$ /index.html last;
}
}
?
标签:跳转 localhost tab 配置 top uri host users write
原文地址:https://www.cnblogs.com/covet/p/10172492.html