swoole+nginx反向代理

nginx配置:

server {
    listen  80;
    server_name  www.swoole.com;
    root  /data/wwwroot/www.swoole.com;

    location / {
        if (!-e $request_filename){
            proxy_pass http://127.0.0.1:9501;
        }
    }
}
 
posted on 2018-12-07 16:57  kevin_yang123  阅读(680)  评论(0编辑  收藏  举报