Home >PHP Framework >Swoole >Can swoole use port 80?
swooleCan I use port 80?
Swoole binds the domain name to port 80 (Nginx listens and forwards)
Start Swoole's http server, which can be accessed using the IP port
Create Nginx virtual domain name
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; } } }
Restart Nginx, DNS points to IP
The above is the detailed content of Can swoole use port 80?. For more information, please follow other related articles on the PHP Chinese website!