Home / ASP.NET - MVC / Configure IIS

Configuring Internet Information Services

To configure IIS, go to Control Panel --> Administrative Tools --> Internet Services Manager. On Windows 2000/XP, Vista Microsoft operating systems use the Microsoft Management Console (MMC) tool as a management tool.

a. The IIS configuration specifies the default home page
1. On Windows 2000, XP
Start --> Settings --> Control Panel --> Administratrive tools --> Open Internet Infomtic Services


Right click on Default Website -> Properties -> Select the Documents page to set the default home page
Example: Default.Aspx, Default.asp, Index.asp,Home.html, Index.htm

2. Configure IIS on Win Vista (Window 8.0, Window 10.0)
Start --> Settings --> Control Panel --> Administratrive tools --> Open the IIS Manager section



Right click on the Default Document
item

b. Configure virtual directory rules – Virtual Directory:
A Web Server can manage multiple Web applications simultaneously. We can organize a subdirectory in wwwroot for each application, but it is better to create a mapping (Virtual Directory) linking to that directory. To create a virtual directory:

  • On Windows 2000, XP
    Right click: Default Website ----> New/ Virtual Directory Next

    Declare label for virtual directory (Myweb) ---> Declare physical directory (D:\MyWebsite)

    Set access rights -->Next --> Finish
  • On Windows Vista
    Right click: Default Website ---> Add Application (or Virtual Directory)


    Declare the label (Alias) and specify the physical directory to store the Website (Physical path)



    Run the application to test:
  • Or from the IIS Manager window: right click on the page to view (Default.aspx) --> Browse


  • Or from the browser enter: http://Localhost/Maytinh

Did you find this article helpful?

Support the author so they can write more quality articles!

Tư vấn lộ trình CNTT 🤖