Frame Windows IIS installation, configuration (Web article) _ Server

Source: Internet
Author: User
Tags anonymous html tags nslookup command

Windows Server, Windows Advanced Server, and Windows Professional default installations all have IIS, or you can install IIS after Windows 2000 is installed.
IIS is a Microsoft production of a WEB, FTP, SMTP Server, a set of integrated software, bundled in the WINDOWS2000/NT, you can add/Remove Programs in the Control Panel select Add Remove Windows Component select Add IIS service. The following figure:

 

iis the default WEB (home) file is stored in%system%\inetpub\wwwroot in the system root, and the home page file is placed in this directory; For security reasons, Microsoft recommends using NTFS to format the IIS All the drives.
First, quickly configure the default WEB site
Open IIS Manager and select the Internet in the Start menu's Administrative Tools Information services or directly in the run enter%systemroot%\system32\inetsrv\iis.msc

After the installation of IIS has automatically established the management and default two sites, where the management WEB site for site remote management, you can temporarily stop running, But it is best not to delete it, otherwise it will be troublesome to rebuild.
immediately enter this address in the browser, Microsoft has been in advance of the detailed help information into IIS: http://localhost/iishelp/iis/misc/default.asp
Right click on the existing "default WEB site", select Properties , you are now starting to configure the IIS Web site.
Each Web site has a unique, three-part identity that is used to receive and respond to requests in the form of port numbers, IP addresses, and host header names.
Browser access to IIS is the case: IP-> Port-> Host Header-> The site's home directory-> the site's default first document.
So the entire configuration process for IIS should be set in the order of access:

    1. The first step is to configure IP and Host Header

      Here you can specify the IP of the Web site, and if not specifically, select All Unassigned.
      If more than one host header is specified, IP must be selected as all unassigned, otherwise the visitor will not be able to access it.

      If IIS has only one site, you do not need to write to the host header identity.
      Then the port is configured, the default access port for the Web site is TCP 80, and if the site port is modified, the visitor needs to enter Http://yourip: The end eloquence can be accessed normally.
    2. The second step is to specify the site home directory.
      The home directory is used to store the location of the site files, by default,%system%\inetpub\wwwroot.

      You can choose a different directory as the location of the site files, click Browse and choose a good path.
      You can also give visitors some permissions, such as directory browsing.
      Based on security considerations, Microsoft recommends using IIS in NTFS disk format.
    3. Step three: Set the default document.
      Each Web site will have a default document, which is the file that the visitor first accesses when visiting the site, such as index.htm index.asp default.asp, and so on.
      Here you need to specify the default document name and order.

      Note that the default document here is read from top to bottom.
    4. Last step: Set access rights.

      Generally give visitors the right to anonymous access, in fact, IIS by default has been established in the system IUSR_ machine name this anonymous user.

Second, follow the wizard to establish a new site
If you want to create a new site, you can follow the wizard of IIS to set it up:


You can select your WEB server IP in the IP address clatter menu, which should be selected by default (All Unassigned). [TIPS: Through this pull-down menu, you can see if you have a public network IP] The TCP default port is 80, and if the port is modified, it needs to be browsed using the HTTP://IP: Port format.
The site host header causes the site to specify a domain name, such as Http://abc.vicp.net. Multiple host headers can be specified under one of the same IP. The default is None.

You can select the Web site's home directory, which is used to hold the home page file, and select Allow anonymous access to this site and anyone can access your Web site over the network.

WEB site access permissions can be set to allow or disallow read, run scripts, and so on.
Third,WEBGeneral settings for a site
Select the site you just established, right-click and select Properties, and the Site Settings interface appears:

1. Description: Site description, which will appear in the IIS admin interface of the site name
2. IP address: Under normal circumstances, you can select All Unassigned. The advanced options can set settings such as the host header Advanced WEB site identification.
3. TCP Port: Specifies the access port for this site, and the default port for the browser to access the WEB is 80.
4. Connection: Select unlimited options to allow simultaneous connection number unrestricted. Select the limit number of connections that are connected to the site at the same time. In the dialog box, type the maximum number of connections allowed. Sets the connection timeout and, if unlimited, does not disconnect the visitor.
5. HTTP activation: Allows the customer to maintain an open connection to the server, instead of reopening the client connection one-by-one with the new request. Disabling HTTP activation can degrade server performance. Keep HTTP activation enabled by default.
6. Logging: Optional log format: IIS, ODBC, or the expanded format of the consortium, and define logging options such as visitor IP, connection time, and so on.
Operator: Sets the user that operates IIS management, by default, allows only administrator privileges to manipulate and administer IIS.
You can also add multiple users or user groups to participate in the administration and operation of IIS.

The home directory is used to set the file directory for the site, and you can select a local directory or a shared location on another computer.
You can set the location of the site directory in the local path, make sure you have the control management permissions for the directory.
Access settings you can specify which resources are inaccessible to those resources, note directory browsing and log access, select Log access, and IIS records the access records for that site, and you can choose to record those data, such as visitor IP time, and so on.
In application settings, configure whether visitors can execute programs and execute those programs.

Main document: Sets the first file name of the site, and the visitor accesses the site in the order of the default document.
To provide a default document at any time when the browser requests the specified document name, select the check box. The default document can be the home page of a directory or an index page that contains a list of site documents.
To add a new default document, click Add. You can use this attribute to specify multiple default documents. Provide the default document in the order of names that appear in the list. The server will return the first document found.
To change the search order, select a document and click the arrow button.
To remove the default document from the list, click Delete.
Note: If you do not have the first file in the home directory, set up or make the relevant settings immediately.
To automatically attach an HTML-formatted footer to each document sent by the WEB server, select this option. The footer file should not be a complete HTML document. Instead, you should include only HTML tags that you want to use to format the appearance and functionality of the footer content. To specify the full path and file name of the footer file, click Browse.

Directory Security
Anonymous access and authentication control:
To configure the authentication and anonymous access features of the WEB server, click Edit. Use this feature to configure the Web server to confirm the identity of the user before granting access to restricted content. However, you must first create a valid Windows user account, and then configure the Windows file System (NTFS) directory and file access permissions for those accounts to authenticate the user. Please open [Computer Management] to view it.
IP address and Domain Name restrictions (this feature is available only on devices that have Windows SQL Server installed.) ):
To allow or prevent specific users, computers, groups of computers, or domains from accessing the Web site, directory, or file, click Edit.
four, withIISBuild Multiple Sites
use of the host header
Create a new two Web site and specify two different domain names in the main header: Test-user1.vicp.net and Test-user2.vicp.net
The host header identity can be arbitrarily modified in the-> Web site identity-> IP address-> advanced in the Web site properties site.







Use the nslookup command to designate Guangzhou Telecom ADSL The default DNS server detects:
Tset-user1.vicp.net and Test-user2.vicp.net IP are the same. However, when browsing, it is true that two different pages are displayed.

Note: When using host headers to establish multiple sites with different domain names, you also need to pay attention to settings such as the main document.
using port configuration to establish multiple sites

You can use different ports to set up multiple sites, but the visitor's browser's default access port is 80, so you must tell the caller what TCP port your site is using.
Access format:
Http://url:port

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.