1. Peanut Shell
The purpose of peanut shells is to apply for a free domain name.
The application method is very simple, is to download a peanut Shell client, register a peanut shell account, and then you will get a free domain name.
My account name is dazhong159, get the free domain name is dazhong159.eicp.net.
2, public network to the intranet port mapping
My public network address is 202.114.107.159, intranet IP is 192.168.100.117, virtual machine IP is 192.168.100.156.
Log on to the router first: by typing 192.168.100.1 in the browser.
Port mapping: Add a new entry in the Virtual server option in the forwarding rule, select the port number 80, map IP address to 192.168.100.156, protocol all, and then make the new entry effective.
3. Apache Server Configuration
See http://blog.csdn.net/dazhong159/article/details/8161310
In general, the corresponding configuration of the virtual host can be, in the directory corresponding to the virtual host to create index.html, as a home page file, so through the http://dazhong159.eicp.net/can visit our website.
4, testing
1 LAN Access test:
Enter in the browser: 192.168.100.156, Effect chart:
Enter in Browser: 202.114.107.159
Enter in Browser: dazhong159.eicp.net
Description: In the local area network, the above three kinds are the effective access way.
2 Public network access test:
Description: Because I am using the school's public network IP, the school administrator has made some restrictions, resulting in some extranet is unable to access this IP (202.114.107.159) address. But we can still do some testing to illustrate the correctness of our site domain name----Use the campus network or other laboratory network to visit our website.
I used the lab next door (and I used a different public network IP) host Access http://dazhong159.eicp.net/is normal to access. And both 202.114.107.159 and dazhong159.eicp.net are valid.