The WWW server uses the software Apache and the service daemon process is httpd. The installation and configuration process is as follows:
1. First, yum install httpd will download and install Apache Software. You can use apachectrl-V to view the version. It is found that 2.0 + can support IPv6 Access.
2. enable port 80 of the firewall. Change iptables and ip6tables respectively. Vim/etc/sysconfig/iptabales is as follows (ip6tables is consistent)
*filter:INPUT ACCEPT [0:0]:FORWARD ACCEPT [0:0]:OUTPUT ACCEPT [0:0]-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT-A INPUT -p icmp -j ACCEPT-A INPUT -i lo -j ACCEPT-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT-A INPUT -j REJECT --reject-with icmp-host-prohibited-A FORWARD -j REJECT --reject-with icmp-host-prohibitedCOMMIT
Httpd starts TCP on port 80 and UDP on port 53. When UDP fails, a TCP packet is sent.
Of course, the firewall is especially loose here. Strictly put, the input should be drop by default, and then open to the specific IP address, port, and Mac.
3. test on the browser, http: // 10. 103. *. *: 80 and http: // [2001: da8: *****: da3f]: 80 can be successfully accessed. Note that when accessing IPv6, add [] to the address 【]
Build a server on WWW-install and configure