iis| Server | Tips
Iis
IIS (Internet Information Server) is a Web server program launched by Microsoft Corporation. When you install Windows Server or Windows Advanced Server, IIS is installed automatically and the default site is established. If your computer installs Windows Professional or installs Windows 2000 without IIS installed, you will need to install IIS manually.
IIS can only run on an NT-technology-based Windows platform and cannot be installed on Windows 98 or Windows Me.
If you do not have IIS in your machine, you can install IIS as described in the following procedure.
1. Installation of IIS
The installation steps for IIS are as follows:
(1) Prepare the Windows 2000 installation CD-ROM and place it in the CD-ROM drive.
(2) Click Start | settings | Control Panel command, open the Control Panel window, and then open the Add/Remove Programs dialog box.
(3) Click the Add/Remove Windows Components button to eject the Windows Components Wizard. Here you can see the various Windows components that are currently installed and not installed in the system. The previously ticked item is a component that has already been installed, a blank component that is not installed, and a tick, but the color is grayed out is a partially installed component. We are going to install Internet Information Services (IIS) as shown in the figure.
(4) With the mouse to select Internet Information Services (IIS), and then click the "Details" button in the lower-right corner, you will see the selection interface shown in Figure 1-11.
The Visible Internet Information Services (IIS) component is a series of collections of components that publish information on the Internet. Building a basic dynamic interactive WWW site requires at least several components as follows:
▲ Common Files: Common programs and data files that are required by each component.
▲ Documentation: Includes default content for sites, topics for site administration, and documentation and samples about ASP.
▲frontpage 2000 Service Extensions: Provides additional support for FrontPage 2000, which is recommended for installation, in view of compatibility.
▲internet Service Management tool: Used to manage your site on the local computer.
▲internet Service Management tool (HTML): Is the HTML form of site management tools, with most of the management capabilities, and can remotely manage your site.
▲world Wide Web server: This is the core Web service program of the service program and has built-in support for ASP.
With these components, you can build a dynamic interactive Web site.
An introduction to several other components is as follows:
▲ File Transfer Protocol (FTP) server: Used to establish FTP services, FTP service is also a popular Internet services, dedicated to providing a variety of file upload and download. The FTP service can be organically combined with the WWW service to provide more efficient upload and download capabilities for your Web site (www itself has basic upload and download capabilities).
▲SMTP Service: Used to establish the mail service, provide the service of sending and receiving e-mail. This is different from the daily e-mail software, SMTP server equivalent to the electronic post Office, it is in the support of the SMTP server in order to send and receive e-mail normally.
If you want the site to provide a powerful upload download feature or to provide mailing list features, check the above components.
(5) After you have checked all the required components, click OK, go back to the Add/Remove Windows Components window, click Next, and the installer starts copying the files you need from the Windows installation CD to your hard disk.
During the copy process, the Component wizard may be prompted to insert and locate the path to the Windows 2000 installation CD, depending on your computer, specify the path. During the replication process, the IIS installer also makes a basic configuration of the Web site that is about to be established, so the process is longer. As shown in the figure.
(6) After the installation is completed, display the successful installation information as shown in the figure, click the "Finish" button to complete the installation of IIS.
2. Configure IIS
After successfully installing IIS, the system automatically establishes two default Web sites. The following are instructions for configuring IIS, as follows:
(1) Click Start | programs | Administrative Tools | Internet Service Manager command to open the Internet Information Services window as shown in the figure. This is the Internet Information Services Administration Tool component, which is based on MMC and has a similar appearance interface and common operation with MMC based Windows programs.
IIS Setup automatically establishes two default Web sites, the default Web site, and the default Web Administration site. In the right pane of the window, the status of the site is displayed, with a total of "run", "Stop" and "pause" three states , and we can easily control the status of the site through the button. The site is in the running state, customers can browse your Web site through the Web site in the stop state, the site will no longer respond to any requests, and all the variables in the server will be cleared, temporary files will be emptied, suspend state for temporary stop service, and all the intermediate process still exists, And can be quickly restored to operation. If a customer is buying a product at your online store and has selected a product when you stop the service when the payment is clicked, the customer has to choose the product again, and if the service is suspended and the service is quickly restored, then the customer may click on the payment to complete the transaction.
Now we start the Web site. If the current state of your Web site is not running, click the triangle button to start the Web site.
(2) Select the Default Web site, right-click, open the shortcut menu, select Properties, select the Web Site tab in the Properties dialog box of the open implied Web site, and set the IP address. (Note: If there is no network of stand-alone, you just want to use to debug the site, you can set IP 127.0.0.1, this IP address to the local computer, you can enter 127.0.0.1 or localhost in the IE Address bar to open your site). If it is intranet, then use the IP address assigned to you, we assume this is in the configuration intranet use Web server, the designated intranet IP is 10.10.10.100, as shown in the figure. The default port number for the Web site is 80.
(3) switch to the Home Directory tab and set your site folder path. The default Web site's root directory is: c:\Inetpub\wwwroot, put your site folder to this root directory, of course, you can also choose your own Web services according to the actual situation, for example, here set the site folder location is D:\sd-web, through the "Browse" button, Specify as the local path, as shown in the figure.
(4) switch to the "Document" tab, enter your site's first file name, as the site's startup document. When the viewer visits the site, the page opens first, as shown in the figure.
(5) Set the directory security of the site.
Anonymous access and authentication control functions, here you can choose whether to allow anonymous access to your Web site, and only anonymous access allows you to directly access the contents of the directory, otherwise you will be required to enter your Web site with a username and password (this is related to Windows 2000 user settings).
Default site Anonymous Access default is allowed, and the default management site is not, of course, can not let everyone randomly manage your default site.
IP address and domain name restrictions, using this feature, you can use the IP address or domain name to restrict access to your Web site. The default Web site defaults to no restrictions, and the default management site defaults to allow only 127.0.0.1 IP addresses, that is, localhost native access.
Secure communication, you can encrypt certain information on your Web site. This functionality is used when the site content requires a high security.
(6) Server extension options
Server extension options are some of the key options for setting up the server, where you change performance and client script items. For best performance, change the performance item to less than 100 pages, and the client script is set to VBScript.
(7) About virtual directories
To publish from a directory other than the home directory, you must create a virtual directory. The virtual directory is not included in the home directory, but browsing the virtual directory in the client browser feels like the virtual directory is in the home directory.
The virtual directory has an alias and the Web browser accesses the alias directly. Aliases are usually shorter than the directory's path name, giving the visitor a clear glance. Using a virtual directory is relatively safe because the user does not know where the file is actually located on the server, or even whether the file really exists on the server, so it is not possible to use this information to destroy your site. Using aliases makes it easier to move directories in your site, and once you change the URL of a directory, you just need to change the mapping between the alias and the actual location of the directory.
For a simple web site, you might not need to add a virtual directory to put all the files in your site's home directory. If your site is more complex or you need to specify a different URL for different parts of your site, you can add virtual directories as needed.