ThinkPHP5.0 nginx配置

浏览:3674 发布日期:2021/06/02 分类:ThinkPHP5专区
server { 
    listen 80;
    server_name tpshopxo.com;
    root /Applications/MAMP/htdocs/test;  
    index index.php index.html ; 
    location / { 
       if (!-e $request_filename) { 
           rewrite  ^(.*)$  /index.php?s=/$1  last; 
       } 
    } 
    location ~ \.php { 
        include fastcgi_params; 
        fastcgi_pass   127.0.0.1:9000; 
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name; 
        fastcgi_param  PATH_INFO  $fastcgi_path_info; 
        fastcgi_param  PATH_TRANSLATED  $document_root$fastcgi_path_info; 
    } 
最佳答案
评论( 相关
后面还有条评论,点击查看>>