Home >PHP Framework >Swoole >Can swoole use port 80?

Can swoole use port 80?

藏色散人
藏色散人Original
2020-04-09 10:50:003183browse

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

Can swoole use port 80?

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;
                }
        }
    }

Can swoole use port 80?

Restart Nginx, DNS points to IP

Can swoole use port 80?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn