nginx 如何定位到文件
世界只因有你
世界只因有你 2017-05-16 17:09:25
0
1
411

假设我访问
${domain}/admin/* 则定位到 /dist/admin.html
${domain}/m/* 则定位到 /dist/mobile.html
否则,则定位到 /dist/index.html

世界只因有你
世界只因有你

全部回复(1)
Ty80

使用rewrite指令,具体使用方法请查询官方文档。比如

rewrite ^/admin/(.*)$ /dist/admin.html last;
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!