server2016 Web server & three virtual host Labs

Source: Internet
Author: User

server2016 Web server & three virtual host experiment document one
Title, first of all we want to build a Web server on the server2016 the following specific operations:
1. Open server2016 will appear Server Manager
2. Open Add roles and features


3. Server Role Options Select Web Server continue to the next step until you install

Two: Three kinds of virtual host experiment
The web is the use of HTTP protocol to publish information, that is, we say the Web page, the Web server is to let us implement information dissemination. To achieve the release of information we have three ways to do this on our web server, and we will experiment with three different ways:
1. Implement Web information publishing based on IP address
2. Open Windows Administration Tools

3. Open IIS Manager

4. Open the website

A default webpage will appear, the default server2016 itself is set by the IP address of the NIC, let's take a look


In that case, can we find our default Web page via our browser?

It turns out it's possible.
We add a network card, IP address set to 192.168.100.10,

Website Right click Add site

Site name Test-b
Physical path Select C Drive
New Folder Jiping
IP address Assignment 192.168.100.10
Next into the C-drive Jiping folder
We will find that the folder is empty, the contents of which we need to populate and to be able to recognize the Web page format
The format of each has

So how do we operate in the empty folder in C-disk?
Build a text document

into a text document plus what you want to say or want to express I'll just show you around here.

Press the Ctrl+s key to save the exit to change the file name

So we can try it on the Internet can not access

2, the above is the IP address as the Web address, after all, a limited number and very cumbersome, the following we will be the same IP address different port number (the default port number 80, if you use more than 1024 can be set)

Test-a, 192.168.100.5 port number default, Test-b, 192.168.100.5 port number is set to 8888



3. Access to the Web can also be achieved with the host name
We create a new Tang poetry website


This file is on our real machine. To install the virtual machine vmware-tools function to move the files on the real machine to the virtual machine

And move the Tang poetry website onto the C-plate.

To modify the Hosts file from a real machine

Here the Hosts file must be moved to the desktop with Notepad open modify

Note: Do not have a space before the IP address
Let's see if we can open the website of Tang poetry again.

The experiment proves that the above modification: 1, IP address, 2, port number, 3, real machine hosts, can achieve Internet access to virtual machine on the Web page

server2016 Web server & three virtual host Labs

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.