CY-Left

未分类

swoole nginx

配置 nginx 分发请求到 swoole

server {
    root /data/wwwroot/;
    server_name local.swoole.com;

    location / {
        proxy_http_version 1.1;
        proxy_set_header Connection "keep-alive";
        proxy_set_header X-Real-IP $remote_addr;
        if (!-e $request_filename) {
             proxy_pass http://127.0.0.1:9501;
        }
    }
}

# 关闭 php-fpm 设置, 否则动态脚本依旧会寻找 fpm

本文虽拙,却也系作者劳动,转载还请保留本文链接: http://cyleft.com/?p=953