首页 > Windows开发 > 详细

windows下Nginx虚拟机配置

时间:2017-03-02 17:38:06      阅读:272      评论:0      收藏:0      [点我收藏+]

server {

        listen 80;

        server_name icobak.cn;

        #access_log  logs/_access.log;

        #error_log   log/_error.log;

        set $public_root E:\phper\code;

        root $public_root;

        index  index.html index.php;

        if (!-e $request_filename) {

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

               }

        location ~ /.svn/ {

                        root $public_root;

                        deny all;

               }

        location / {

                        root $public_root;

                        index  index.html index.php;

                        client_max_body_size 10m;

                }

        location ~ \.php$ {

                        root $public_root;

                        index index.php;

                        fastcgi_pass   127.0.0.1:9000;

                        fastcgi_index  index.php;

                        fastcgi_param  SCRIPT_FILENAME

                          $document_root$fastcgi_script_name;

                        include fastcgi_params;

                }

}


windows下Nginx虚拟机配置

原文:http://jinliang.blog.51cto.com/8981814/1902632

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!