Home  >  Q&A  >  body text

How nginx locates files

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

世界只因有你世界只因有你2713 days ago416

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 17:11:25

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

    rewrite ^/admin/(.*)$ /dist/admin.html last;

    reply
    0
  • Cancelreply