Current location - Quotes Website - Collection of slogans - How to Create an IIS Website (Detailed)
How to Create an IIS Website (Detailed)
First, servers generally use IIS or Apache. In the Windows server, we generally use IIS and install it through the control panel. The specific approach is:

1. Enter the control panel.

2. Double-click Add or Remove Programs.

3. Click Add/Remove Windows Components.

4. In the Components list box, double-click Application Server.

5. Double-click Internet Information Services (IIS).

6. Choose from "World Wide Web Service" and "File Transfer Protocol (FTP) Service".

7. Double-click "World Wide Web Service" and select "Active Server Page" and "World Wide Web Service".

Second, set up IIS, and then set up the Web server, specifically:

1. Select Administrative Tools →Internet Information Services (IIS) Manager from the start menu.

2. In Internet Information Services (IIS) Manager, double-click the local computer.

3. Right-click "Website" and select "New → Website" in the pop-up menu to open the website creation wizard.

4. Fill in the website description, IP address, port number, path and website access right in turn. Finally, the default document (Index.asp, Index.asp) should be set to be easy to access.

The above settings are basically the same as those of the Windows 2000 Server website, but at this time, the Web service is only applicable to static content, that is, static pages can be browsed normally, and the commonly used Active Server Pages(ASP) function is not enabled. Therefore, you should also choose to allow the Active Server Page in the Web Service Extension of Internet Information Services (IIS) Manager.

Third, install IIS.

1. If IIS server is not installed in the system, you can open the control panel, then click Add/Remove Programs, select Add/Remove Windows components in the pop-up dialog box, select Internet Information Services (IIS) in the Windows component wizard dialog box, and then click Next to complete the installation of IIS.

Fourth, configure the website.

1. Open IIS Manager, right-click Website and create-> website

2. Open the Create Wizard and continue to Next.

3, website description, generally we write the website domain name, that is, the logo (name) of the website in IIS.

This is a key step. The IP address is generally set to "All Unassigned", which has an advantage: in case the host changes the IP, it does not need to be set in IIS, just modify the domain name resolution. Of course, if you have multiple IPS, you can also specify different IPS for different websites. The port is generally 80, which is the standard port for Web services. Write down the domain name of your website in the host, continue, next step.

5. Set the path of the website file. It is suggested to put the information on disk E, select "E:\wwwroot" through "browse" or enter it directly.

6, Settings, different types of websites set different permissions. Static pages only need to be read.

7. After adding, we create a file in E:\wwwroot, open it with Notepad, and write a test text.

8. After adding, you can see the website of "Test". Right-click "Properties" to bind the domain name, set the default document, 404 error page and so on.

9. Several common setting options.

10. When finished, enter your domain name in the browser.