How nginx locates files
世界只因有你
世界只因有你 2017-05-16 17:09:25
0
1
454

Suppose I visit
${domain}/admin/*, then it will be located at /dist/admin.html
${domain}/m/*, then it will be located at /dist/mobile.html
Otherwise , then locate /dist/index.html

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

reply all(1)
Ty80

Use the rewrite command, please check the official documentation for specific usage methods. For example

rewrite ^/admin/(.*)$ /dist/admin.html last;
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template