Home > PHP Framework > Swoole > body text

Can swoole use port 80?

藏色散人
Release: 2020-04-09 10:50:00
Original
3008 people have browsed it

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
Copy after login
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;
                }
        }
    }
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!