Cara mengkonfigurasi Nginx untuk menyembunyikan fail kemasukan awam/index.php
vhost配置
pelayan {
dengar 80;
server_name test.cn ;
80 .conf";
index index.html index.htm index. php;
#location {
#
##autoindex on;
#}
lokasi ~ .php (.*) $ {
fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php;
thinkphphide index.php
vhost配置
pelayan {
dengar 80;
server_name test.cn ;
80 .conf";
index index.html index.htm index. php;
#location {
#
##autoindex on;
#}
lokasi ~ .php (.*) $ {
fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php;
PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include ms fast ; terakhir ; rehat; }}thinkphphide index.php