tp5.1+think-swoole2.0.17部署不成功,求助!

浏览:532 发布日期:2019/05/07 分类:ThinkPHP5专区
使用nginx做静态文件代理,参考以下文章:
https://www.kancloud.cn/thinkphp/think-swoole/722895
https://gitee.com/guaosi/swoole-live-demolocation ~ .*\.(js|css|gif|jpg|jpeg|png|bmp|swf|html)?$
        {
          if (!-e $request_filename) {
             proxy_pass http://127.0.0.1:9501;
        }
        break;
        }

        location / {
        proxy_http_version 1.1;
        proxy_set_header Connection "keep-alive";
        proxy_set_header X-Real-IP $remote_addr;
        if ($uri = /) {
         proxy_pass http://127.0.0.1:9501;
        }
        if (!-e $request_filename) {
             rewrite ^(.*)$ /index.php?s=$1;
             proxy_pass http://127.0.0.1:9501;
             break;
        }
      }
始终无法成功部署,如图所示,请指教!

附件 1.jpg ( 56.58 KB 下载:9 次 )

最佳答案
评论( 相关
后面还有条评论,点击查看>>