[Web Server Setup Guide] Post)

Source: Internet
Author: User
Tags nntp
IIS (Internet Information Server) is a web service component, including Web servers, FTP servers, NNTP servers, and SMTP servers, it is used for Webpage Browsing, file transmission, news services, and email sending. It makes it easy to publish information on the Internet (including the Internet and Local Area Network. This article describes how to configure and manage IIS 2003 web servers in Windows Server 5.0.
1. Add IIS
Go to "Control Panel", select "Add/delete Programs> Add/delete Windows components", and remove the hooks before "Internet Information Service (IIS)" (if any ), after the check box is selected, follow the prompts to add the IIS component. The IIS component added in this way includes all four services, including web, FTP, nntp, and SMTP.
Ii. IIS running
After IIS is successfully added, Go to Start> program> Management Tools> Internet Service Manager to open the IIS manager. For services with the words "STOPPED, right-click them and select "start" to enable them.


3. Create the first web site
For example, if the IP address of the local machine is 192.168.1.2 and your webpage is stored in the D: \ ecdirectory, the first page of the webpage is named index.htm, and you want to build your own web server based on the above.
For this web site, we can use the existing "Default web site" to make the corresponding changes, you can easily implement. Open the website node, right-click the "Default web site", and select "properties" to go to the "Default web site property" setting interface.
1. Modify the bound IP Address: Go to the "web site" window, and select the local IP Address "192.168.1.2" from the "ip address" drop-down menu ".
2. modify the main directory: Go to the "main directory" window, and enter the "D: \ EC" Directory of Your webpage in the "local path" (or click "Browse.
3. Add the homepage file name: success ".
4. add a virtual directory. For example, if your home directory is under "D: \ EC" and you want to enter the format of "192.168.1.2/EC", you can call up "E: "EC" is the virtual directory. Right-click "Default web site", select "New> virtual directory", enter "EC" in "alias", and enter "E: "\ EC" and then follow the prompts to add successfully.
5. test the effect: Open IE, enter "192.168.1.2" in the address bar, and press the Enter key. Then, you can call up the homepage of Your webpage. This indicates that the setting is successful!
6. If you are publishing the ASP source code program, you must enable the ASP Component Service by opening "Web Service extension" and selecting "Active Server Pages" in the window on the right ", click the Allow button to enable the ASP Component Service and parse the ASP statements.

4. Create multiple Web Sites
1. Multiple IP addresses correspond to multiple Web Sites
If the local machine has been bound with multiple IP addresses and you want to use different IP addresses to obtain different web pages, right-click the "Default web site" and choose "New> Website ", then, enter any content (for example, "second site") to describe it as prompted ") in the drop-down menu of "Enter the IP address used by the web site", select the IP address to bind to it (). After the web site is created, then follow the method in the previous step to configure the settings.

[/Align]
2. One IP address corresponds to multiple Web Sites
After all the web sites are created in the previous step, you can set different port numbers for each web site for the VM. For example, you can set a Web site to 80, one is set to 81, and the other is set to 82 ...... (), For the web site with port 80, the ACCESS format is still directly an IP address, and for the web site bound with other port numbers, during access, the corresponding port number must be added to the IP address, that is, the format of "http: // 192.168.1.2: 81" must be used.
[Align = center]

Obviously, it is more difficult to use it after the port number is changed. If you have mapped all the domain names you need to this unique IP address on the DNS server, you can set different "host headers, this allows you to directly use a domain name to access different web sites. For example, if your local machine only has one IP address 192.168.1.2, you have already created (or set) two web sites, one is "Default web site" and the other is "second site ", now you want to enter "www.in9.cn" to directly access the former, and enter "www.in9.com" to directly access the latter. The procedure is as follows:
(1) Make sure that you have mapped both domain names to the IP address on the DNS server first, and make sure that the port numbers of all web sites are maintained as the default value of 80.
(2) Select "Default web site> right-click> Properties> Web site", and click "advanced" on the right of "ip address, double-click the existing IP address under "this site has multiple identifiers" (or click it and then click "edit ), enter "www.in9.cn" under "Host header name" and then press "OK" to save and exit ().

(3) set the new host header "www.in9.com" for "second site" in the same way as above.
(4) Open your IE browser and enter different URLs in the address bar to bring up the content of different web sites.
3. Multiple Domain Names correspond to the same web site
You only need to bind an IP address to the web site, and then map all the domain names in the DNS server to your IP address. Then, enter any domain name in the browser, you can directly obtain the content of the website you have set.
Iii. Remote Management of IIS services
1. Right-click "manage Web sites", select "properties", go to the "Web sites" window, and select "ip address ".
2. go to the "Directory Security" window and click "edit" under "IP address and domain name restriction, click "authorize access" to allow the client to manage IIS from a place outside the local machine. Then, click "OK.
3. enter the format of "http: // 192.168.1.2: 3598" (3598 is the port number) in the browser of any computer. A password inquiry window appears, after entering the Administrator account name (Administrator) and password, you can log on successfully. Now you can remotely manage IIS in your browser! The management scope mainly includes creating, modifying, starting, stopping, and deleting websites and FTP sites.
4. FAQs in this section
Q: What does this mean when "http: //" or "no" is added to the URLs mentioned above?
A: If "http: //" is not added, it indicates that it can be added or not. If "http: //" is added, it is necessary! URLs with port numbers must be added; otherwise, URLs with port numbers can be omitted.
Q: Can I replace the IP addresses mentioned above with a "friendly" name?
A: Yes! In addition to using the computer name of the IIS server, you can also create a ing table for the domain name and corresponding IP address on the DNS server to access the domain name!
Q: I have set up a Web server, but a password prompt window appears when I access the webpage. Why?
A: The password prompt window appears when you access the web site. Generally, check the password one by one for the following reasons:
1. The accessed webpage file is encrypted. For example, the "iisstart. asp" homepage file under "Default web site"'s original home directory "E: \ Inetpub \ wwwroot" requires a password.
2. No anonymous access is allowed or no changes are allowed ., First, make sure that the "Allow Anonymous Access" option is checked; in addition, in "edit", "Anonymous User Account", "User Name" should be in the format of "iusr_ec" (where "EC" is the computer name). In addition, you also need to check "Integrated Windows Authentication.

3. Your target directory has limited access permissions. This option is only available when the directory is in an NTFS format partition. Right-click it, select "properties", and enter the "Security" window to check whether the list shows the status that allows the "everyone" group to be fully controlled by default. If not, change it back.
Now, how to create a web server has been introduced. Later, we will introduce how to use the IIS service to install the dynamic network forum, leiao forum, and PHP forum. Coming soon!

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.