ApacheHTTPServer (1) -- bind the address and port to start apache2 and call the command apache2ctl to start apache2. It can be simple to use start, stop, restart and other parameters, you can also use the same parameters as apahce2. In the/etc/init. d/apache2 script,... Apache HTTP Server (1) -- bind the address and port to start apache2 and call the command apache2ctl to start apache2. It can be simple to use start, stop, restart and other parameters, you can also use the same parameters as apahce2. In the/etc/init. d/apache2 script, apahce2ctl is also called. In the/etc/apache2/ports. conf file, you can see this line: Listen 80, which indicates listening to port 80 of all network adapters of the server. We can also listen to different ports on different NICs:
Listen 192.0.2.1: 80 Listen 192.0.2.5: 8000 www.2cto.com if you want to Listen to IPv6, use square brackets around the address:
Listen [2001: db8: a00: 20ff: fea7: ccea]: 80 the IPv6 address mapped to IPv4 is used to process IPv4 and IPv6 requests simultaneously with the minimum number of sockets. -- The enable-v4-mapped configuration option is used to start this ING. By default, this option is enabled for all platforms except FreeBSD, NetBSD, and OpenBSD. If you only want to process IPv4 requests, specify an IPv4 address on all the Listen commands:
Listen 0.0.0.0: 80 Listen 192.0.2.1: 80 www.2cto.com protocol Listen has an optional protocol parameter. If not specified, the default https port is 443, while http is another port.
This protocol is used to determine which module is used to process requests and to apply protocol-related optimization using AcceptFilter. The protocol parameter must be specified only when a non-standard port is returned. For example, the Listen 192.170.2.1: 8443 https and the Listen command of the Virtual Host do not implement Virtual Host. it only tells the master server which addresses and ports to Listen to. if not The server processes all received requests in the same way. Commands can specify different behaviors for one or more addresses or ports. To use VirtualHost, the server must first listen to the address and port used. otherwise Cannot be accessed. By yourtommy
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.