swoole可以用80端口吗?
Swoole 绑定域名 80 端口 (Nginx 监听转发)
启动 Swoole 的 http server,可以使用 IP + 端口 进行访问
创建 Nginx 虚拟域名
vim swotp.liuguofeng.com.conf
server
{
listen 80;
server_name swotp.liuguofeng.com ;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/swoole_thinkphp.liuguofeng.com;
location / {
if (!-e $request_filename) {
proxy_pass http://127.0.0.1:8811;
}
}
}重启 Nginx,DNS 指向 IP
Copyright © 2019- gamedaodao.net 版权所有 湘ICP备2024080961号-6
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务