Use http to build two simple web pages in redhat7

1. Topic: Build two web sites;
   1. The host of the website's ip address is 11, and the documentroot is set to the abbreviation of /www/personal name spelling. The content of the web page is: my name is …;
   2. The host of the website's ip address The bit is 12, and the port used is 20000, the documentroot is set to /www/12, and the content of the web page is the pinyin of the wo shi name;

Steps to solve the problem:
1. Turn off the firewall setting selinux; 
Insert picture description here
2. Add 2 ip addresses, respectively 192.168.90.11 and 192.168.90.12
Insert picture description here
3. Create two web file root directories, and define web content
Insert picture description here Insert picture description here
4. Definition based Different IP address to access the configuration file of the website, restart httpd
Insert picture description here
Insert picture description here
5. chrome page demo
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/Light20000309/article/details/104636532
Recommended