私人领地

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 代码
      }
}   

 

如下

 

posted @ 2018-08-24 18:20  狂奔的蜗牛Snails  阅读(5905)  评论(0编辑  收藏  举报