apache+ Peanut shell complete with a simple website

Source: Internet
Author: User
Tags create index shell account

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.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.