windows版nignx配置Thinkphp5.0

                      
                            <

 #START-SITE

server {

listen 80 default_server;

server_name  mytest.net;

access_log  logs/mytest.net.access.log;

root B:/wwwroot/mytest.net/public;

index  index.php default.php index.html index.htm default.html default.htm;

include rewrite/mytest.net.conf;

#START-ERROR-PAGE

error_page 403 /403.html;

error_page 404 /404.html;

        error_page 502 /502.html;

#END-ERROR-PAGE

#301-START

#301-END

#REFERER-START

#REFERER-END

#PROXY-START

#PROXY-END

#START-SSL

#END-SSL

#START-PHP

location ~ \.php$ {

root B:/wwwroot/mytest.net/public;

fastcgi_pass 127.0.0.1:4570;

fastcgi_index  index.php;

fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;

include        fastcgi_params;

    }
    #这行就是伪静态 

    location / {

    if (!-e $request_filename) {

        rewrite ^(.*)$ /index.php?s=/$1 last;

        break;

    }

}     

#END-PHP

}

#END-SITE

 

>