Overview of IIS installation and configuration

Source: Internet
Author: User
Tags default ftp port ftp site perl interpreter email account nslookup command
Web

Windows 2000 Server, Windows 2000 Advanced Server, and Windows 2000 Professional are installed with IIS by default. You can also install IIS after Windows 2000 is installed.

IIS is an integrated software set up by Microsoft to set up web, FTP, and SMTP servers. It is bundled in Windows2000/NT and can be added/deleted on the control panel. Program Select Add Delete Windows Components and select Add IIS service. For example:

========= Web Server ============

By default, IIS Web (home page) files are stored in % System % \ Inetpub \ wwwroot in the system root area, and the home page files are stored in this directory. For security reasons, therefore, Microsoft recommends using NTFS to format all IIS drives.

Quickly configure the default web site

Open the IIS manager, select Internet Information Service from the management tools in the Start menu, or directly enter % SystemRoot % \ system32 \ inetsrv \ IIS. MSC

After the IIS is installed, the management and default sites are automatically created. The management web site is used for Site Remote Management and can be temporarily stopped, but it is best not to delete it, otherwise, it will be very troublesome to rebuild.

Enter this address in the browser immediately. Microsoft has put detailed help information in IIS in advance: http: // localhost/IISHelp/IIS/MISC/default. asp

Configuration

Right-click the existing "Default web site" and select Properties. Now you can configure the IIS web site.

Each web site is uniquely identified by three parts: the port number, IP address, and host header name.

When the browser accesses IIS, it is like this: ip> port> Host Header> Home Directory of the site> default first document of the site.

Therefore, the entire IIS configuration process should be set in the access order:

Step 1: configure the IP address and Host Header

You can specify the IP address of the web site. If you do not need it, select none.

If multiple host headers are specified, the IP address must be selected as all unallocated. Otherwise, the visitor will not be able to access the IP address.

If IIS only has one site, you do not need to write the Host Header ID.

Then configure the port. The default access port of the web site is TCP 80. If the site port is modified, the visitor must enter http: // yourip: port to access the site normally.

Step 2: Specify the Home Directory of the site.

The main directory is used to store site files. The default value is % System % \ Inetpub \ wwwroot.

You can select another directory as the location for storing site files. Click Browse and select the path.

You can also grant access permissions, such as directory browsing.

For security reasons, Microsoft recommends using IIS In the NTFS disk format.

Step 3: Set the default document.

Each website has a default document. The default document is the first file that a visitor needs to access when accessing the site, for example, index.htm index. asp default. asp.

Specify the default document name and sequence.

Note that the default document here is read from top to bottom.

Last step: Set the access permission.

Generally, the visitor is granted Anonymous Access Permissions. In fact, by default, IIS has already set up an anonymous user like IUSR _ machine name in the system.

Follow the Wizard to create a new site

To create a new site, follow the IIS Wizard to set up:

In the IP address menu, you can select your web server IP address. By default, you should select (all are not allocated ). [Tips: You can check whether you have a public ip through this drop-down menu] The default TCP port is 80. If you have modified the port, You Need To Use http: // IP: port format.

The site Host Header allows the site to specify a domain name, such as a http://abc.vicp.net. You can specify multiple host headers under the same IP address. The default value is "NONE ".

You can select the Home Directory of the web site, which is used to store home page files. If you select allow anonymous access to this site, anyone can access your web site through the network.

You can set the permission to allow or prohibit reading and running scripts for websites.

General settings of Web sites

Select the site you just created, right-click it, and select properties. The site settings page is displayed:

1. Description: site description. The site name appears on the IIS management interface.

2. IP Address: Normally, you can select all unallocated IP addresses. In advanced options, you can set the Host Header, advanced Web site ID, and other settings.

3. TCP port: Specify the access port of the site. The default access port of the browser to the Web is 80.

4. Connection: select the unlimited option to allow unlimited connections. Select to limit the number of connections to the site at the same time. In the dialog box, enter the maximum number of connections allowed. Set connection timeout. If you select "unlimited", the access will not be disconnected.

5. Http activation: allow the customer to maintain an open connection with the server, instead of re-opening the customer connection one by one using new requests. Disabling HTTP activation will reduce server performance. HTTP activation is enabled by default.

6. log record: You can select IIS, ODBC, or W3C extended log format, and define record options such as visitor IP address and connection time.

Operator: sets the user who operates IIS management. By default, only the Administrator permission is allowed to operate and manage IIS.

You can also add multiple users or user groups to manage and operate IIS.

The main directory is used to set the file directory of the site. You can select a local directory or another computer's shared location.

You can set the storage location of the site directory in the local path. Make sure you have the permission to control and manage the directory.

In the access settings, you can specify the resources that can access those resources that are not accessible. Note that directory browsing and log access are important. If you select Log Access, IIS records the access records of the site, you can choose to record the information, such as the visitor's IP time.

In application settings, configure whether visitors can execute programs and execute those programs.

Main Document: Set the homepage file name of the site. Visitors will visit the site in the order of default documents.

To provide a default document at any time when a browser requests a document name, select this check box. The default document can be the home page of the directory or the index page containing the list of site document directories.

To add a new default document, click Add ". You can use this feature to specify multiple default documents. Provide the default document by name in the list. The server returns the first document found.

To change the search order, select a document and click the arrow.

To delete a default document from the list, click Delete ".

Note: If the home page file does not exist in the home directory, create it immediately or set it.

To automatically append an HTML footer to each document sent by the Web server, select this option. The footer file should not be a complete HTML document. Only HTML tags that need to be used to format the appearance and functions of the footer content should be included. To specify the full path and file name of the footer file, Click Browse ".

Directory Security

Anonymous access and authentication control:

To configure Web Server Authentication and anonymous access, click Edit ". Use this function to configure the Web server to confirm the user's identity before authorized 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 these accounts so that the server can verify the identity of the user. Open [computer management] to view details.

IP address and domain name restrictions (this function is only available on devices installed with Windows 2000 Server .) :

To allow or prevent a specific user, computer, computer group, or domain from accessing the Web site, directory, or file, click Edit ".

===== Use IIS to create multiple sites ============

Use of Host Header

Create two web sites, specifying two different domain names in the Host Header: test-user1.vicp.net and test-user2.vicp.net

You can modify the Host Header ID at will in the Web site> Web site ID> ip address> advanced of the site attribute.

Use the NSLookup command to specify that the default DNS server of Guangzhou Telecom ADSL detects that the tset-user1.vicp.net and test-user2.vicp.net IP are the same. However, the browser displays two different pages.

Note: when using the Host header to create multiple sites with different domain names, you must also pay attention to the settings such as the main document.

Use port configuration to create multiple sites

You can use different ports to set multiple sites, but the default access port of the visitor's browser is 80, so you must tell the visitor what the TCP port is for your site. Access format: http: // URL: Port

Windows 2000 IIS installation, configuration, and advanced management

Set master attributes of WWW and FTP services

Right-click the server and select Properties to set the master attributes of WWW or FTP, including the cache of the entire site.


You can enable the bandwidth limit function to limit the bandwidth occupied by IIS.


Let the WWW Service Support Dynamic programs

1. Install the perl interpreter in IIS

The PERL language is written by Larry Wall. Practical Extraction and report language is the full name of the language. Its original design is to replace the combination of unix sed/awk and shell script.

To enable IIS to support this language, install the perl interpreter.

Official download of Perl interpreter: http://www.perl.com/pub/a/language/info/software.html

Http://download.pchome.net/development/sever/perl/730.html (pchome. Net)

Http://www8.pconline.com.cn/download/swdetail.phtml? Id = 4379 (pconline. com. cn)

After downloading the file, you can directly put Perl in a directory, or run the Installation Wizard to install the file in the corresponding directory. Here, the file is installed under D: \ Perl (perl.exe in the bin directory ).


Configure IIS:

Select site properties and click Configuration in application settings in the main directory bar: (Note: Add "%" after Perl ").


Select Add:

IIS asks the location of the application and the file name interpreted by the corresponding program. Here, two types of CGI and PL files and PLX files need to be added.


(The extension can be written as. * or directly as *, which is automatically recognized by IIS)

Finally, set the IIS execution license to scripts and executable programs.


Now IIS supports Perl.

2. Make IIS support PHP

PHP is short for personal home page tools (Hypertext Preprocessor ).

PHP:

Http://www.php.net/downloads.php (Official Site download)

Http://download.pchome.net/development/sever/php/7884.html (pchome. Net)

Http://www8.pconline.com.cn/download/swdetail.phtml? Id = 645 (pconline. com. cn)

Like Perl, install it in D: \ PHP.

To configure IIS, the process is the same as to configure Perl:


So far, IIS supports the current mainstream dynamic languages.

Install and Configure ftp in Windows 2000 IIS

Windows 2000 Server, Windows 2000 Advanced Server, and Windows 2000 Professional are installed with IIS by default. You can also install IIS after Windows 2000 is installed.

IIS is an integrated software developed by Microsoft to set up web, FTP, and SMTP servers. It is bundled in Windows2000/NT, you can select add or delete Windows Components in the Add/delete programs on the Control Panel to add IIS services. For example:


FTP Server

Using IIS, you can create multiple FTP servers and implement column functions such as limiting users, locking directories, locking permissions, and blocking visitors' IP addresses.

1. Establish

You can use the IIS Wizard to create an FTP server.


Right-click the computer icon on the IIS Console (the local computer name is displayed on the local management page) to create an FTP site.


The IP address and other settings are the same as those in the Web mode. Dynamic IP addresses can be all unallocated, and the default FTP port is 21.


Specifies the home directory path of the FTP site


Set the user's access permissions. to grant the upload permission to the visitor, select "write" here ".

2. After setting up an FTP site, you also need to set the site. In the IIS console, right-click the FTP site and select Properties to set it:


If only anonymous connections are allowed, FTP is only available to anonymous users.


Set server reply Information

Iii. Monitoring

If you want to monitor the FTP server, you can monitor the server as shown in the following figure and disconnect the access connection.


Monitor FTP servers

Install and configure SMTP in Windows 2000 IIS

I. Establishment of SMTP Service

IIS provides an SMTP virtual server. You can send emails to and from the local SMTP service.


Right-click the SMTP server and choose Properties to set SMTP.


Ii. SMTP Application

Now you can use your machine to send emails without the SMTP provided by the service provider.

Email account in Outlook


Change the SMTP in your account to your own IP address to use your machine's SMTP service.

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.