Sila berikan kod untuk mengkonfigurasi thinkphp pseudo-static dalam nginx?
迷茫
迷茫 2017-05-16 17:15:53
0
1
725

ThinkPHP tulis semula url di bawah peraturan Tulis Semula nginx pseudo-statik

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

membalas semua(1)
巴扎黑
server {  
    location / {  
        index  index.htm index.html index.php;  
        try_files  $uri  /index.php$uri;  
    }  
    location ~ .+\.php($|/) {  
        root        /var/www/thinkphp;  
        fastcgi_pass   127.0.0.1:9000;  
        fastcgi_index  index.php;  
            
        fastcgi_split_path_info  ^(.+\.php)(/.*)$;  
        fastcgi_param  PATH_INFO $fastcgi_path_info;  
          
        include        fastcgi.conf;  
    }  
}  
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan