nginx 默认访问index.php

代码

http {
    include       mime.types;
    default_type  application/octet-stream;


    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;
   // 默认访问index.php
    index   index.php index.html index.htm;

    server {
    .... server 代码
      }
}   

如下

原文地址:https://www.cnblogs.com/wesky/p/9531360.html