1. Home
  2. Hosting & Servers
  3. Virtual Private Server [VPS]
  4. How to create website on window server through IIS
  1. Home
  2. Hosting & Servers
  3. Virtual Private Server [VPS]
  4. How to create website on window server through IIS

How to create website on window server through IIS

Open Server Manager, and select IIS, right click your server and select Internet Information Services (IIS) Manager.

In the Connections pane, right-click the Sites node in the tree, and then click Add Website.

In the Add Website dialog box, enter a friendly name for your website in the Site name box.

If you want to select a different application pool than the one listed in the Application Pool box, click Select. In the Select Application Pool dialog box, select an application pool from the Application Pool list and then click OK.

In the Physical path box, enter the physical path of the website’s folder, or click the browse button () to navigate the file system to find the folder. (Note: It is best to make a folder in your C: specifically for your websites. I have named mine www)

If the physical path that you entered in the previous step is to a remote share, click Connect as to specify credentials that have permission to access the path. If you do not use specific credentials, select the Application user (pass-through authentication) option in the Connect As dialog box.

Select the protocol for the website from the Type list.

If you must specify a static IP address for the website (by default, this is set to All Unassigned), enter the IP address in the IP address box.

Enter a port number in the Port text box.

Optionally, enter a host header name for the website in the Host Header box.

If you do not have to make any changes to the site, and you want the website to be immediately available, select the Start Website immediately check box.

Click OK.

In Features View of IIS Manager, double-click Authentication.

Select Anonymous Authentication/right click and select Edit to set the security principal (user credentials) under which anonymous users will connect to the site.

In the Edit Anonymous Authentication Credentials dialog box, select one of the following options:

If you want to configure a specific user account that IIS uses to access your site or application, select Specific user. Then click Set to open the Set Credentials dialog box, and enter a user name and password for the identity. Then click OK.

If you want IIS processes to run by using the account that is currently specified on the property page for the application pool, select Application pool identity. By default, this identity is the IUSR account.

(Recommended: Change the default IUSR account to your username. If you leave it set to IUSR, you grant anonymous users all the internal network access associated with that account)

Click OK to close the Edit Anonymous Authentication Credentials dialog box.

In Features View of IIS Manager, double-click Default Document.

In the Actions pane, click Add.

In the Name box, enter the file name that you want to add to the list of default documents and then click OK. This file name is added to the top of the default document list.

Optionally, select a default document in the list and in the Actions pane, click Move Up or Move Down to change the file’s precedence.

Optionally, select a default document in the list, and in the Actions pane, click Remove to remove any file names that you do not want to use as default documents.

In Features View of IIS Manager, double-click Compression.

Select Enable static content compression to configure IIS to compress static content/ Then click Apply

You can now test your site by doing the following: Click on your site / in the Action pane select Browse *:80 (http)

 

Updated on April 18, 2020

Was this article helpful?