Hosting Mobile WebSite Under IIS

Introduction

In this article, we will see how to host a mobile website under Internet Information Services (IIS).

Background

First, we have to create a mobile web application. For how to create a mobile website see my previous article Developing Mobile Pages.

Once we have created our mobile pages the testing of the mobile pages is not as easy as you think; for testing of mobile pages, you can use desktop browsers as well as Mobile Emulators. With desktop browsers, you can test by direct debugging application but in mobile emulators first we have to host our website under IIS. In my next article, I'll explain how to test mobile pages in mobile emulators. This article is the prerequisite for the next article. For testing mobile pages in an emulator we have to host the website first under IIS.

Hosting website

Check out the following screenshot which will help you to host the website under IIS.

  1. Open IIS Manager
    New virtual directory
  2. Right-click on Default Web Site->New->Virtual Directory which will open the following screen.
    Virtual name for website
  3. Provide a virtual name by which you want to access your website while typing the URL. And click on next.
  4. The next screen will ask you to provide the physical content of your application.
    Click here
  5. On the next screen, it will ask you the permission setting for you website. Select all permissions and click on next and then finish.
    Select all permission
  6. After finishing website creation your website is created.
    New website created with name given
  7. Now test whether your website is working or not. To do that open your browser and type the url like below or you can type your IP address also instead of localhost.
    Type url of application here

Conclusion

In this manner, we can host our website under IIS. In the next article, we will see how to display mobile pages in emulators.


Similar Articles