简体   繁体   中英

How to open a new port in apache

我想在 apache 中打开一个新端口,以便我可以通过http://ip:port接受端口上的 http 请求

Check Binding to Addresses and Ports :

For example, to make the server accept connections on both port 80 and port 8000, on all interfaces, use:

 Listen 80 Listen 8000

To make the server accept connections on port 80 for one interface, and port 8000 on another, use

Listen 192.0.2.1:80 Listen 192.0.2.5:8000

IPv6 addresses must be enclosed in square brackets, as in the following example:

 Listen [2001:db8::a00:20ff:fea7:ccea]:80

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM