nginx 默认访问index.php

Posted 狂奔的蜗牛

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 代码
      }
}   

 

如下

 

以上是关于nginx 默认访问index.php的主要内容,如果未能解决你的问题,请参考以下文章