nignx location index usage

Source: https://blog.csdn.net/qq_32331073/article/details/81945134#_10

 

The role of index instruction

  • On the basis of the rear end of the front separated by Nginx configuration, the initial page specified website.
  • The command has a default value index index.html , i.e., if the index is not given, the default is the start page index.html

 

In no explicit file names, index will start, the role of index is that you did not give a specific name, will automatically give you with a

Guess you like

Origin www.cnblogs.com/laijinquan/p/11590374.html