How to bind multiple ports to nginx?
高洛峰
高洛峰 2017-05-16 17:11:30
0
1
455

Port 80 has been successfully bound to nginx and the website opens normally.

Now I want to add another 8080 port binding, what should I do? I've searched Baidu and tried 2 things without success. I haven't slept all night and I'm a little tired, so I'd like to ask everyone here for advice. Thank you!

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
Ty80

Just write multiple listens in the server configuration section, such as:
listen 192.168.0.2:80;
listen 192.168.0.2:8080;

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template