Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 138691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:18:15+00:00 2026-05-11T07:18:15+00:00

I have a Default Web Site and another web application (let’s call it Application2

  • 0

I have a Default Web Site and another web application (let’s call it Application2) inside the Default Web Site in IIS7.

I have 2 registered domain names, let’s say http://www.example.com and http://www.example.net.

I would like to configure things that when I open http://www.example.com I get Default Web Site, when I open http://www.example.net I get Default Web Site/Application2.

www.example.com -> Default Web Site www.example.net -> Default Web Site/Application2 

How can I do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T07:18:15+00:00Added an answer on May 11, 2026 at 7:18 am

    First you need to decide if your going to use Name Based or IP Based hosting.

    IP-Based uses unique ip’s to determine which virtual host it will serve and Name Based will actually use the host header which is sent by your client browser.

    So let’s see two scenarios:

    Scenario # 1 (ONE IP TO SHARE)

    You have a server with only one IP, could be either private or public as long as the domains you are serving are properly configured in the dns serving you internally or your client externally (NAT).

    I suggest that for the sake of this tutorial you stop the default website. Ok.

    You will set up one site in II7 and name it accordingly. Go to the right hand side of the manager and look for ‘Bindings’ under actions menu; making sure you have the new site selected on your left pane. Now under ‘Site Bindings’ select the ip address you will be sharing between the sites (name based hosting). Under ‘Hostname’ enter domain # 1 ‘www.example.com’, hit ok.

    Follow the same procedure above with the other domain or domains, making sure they have diferent hostnames and same ip’s.

    That’s it. You will now be able to start those sites and run them at the same time.

    The same principle above applies if your using the ‘Default Site’. ‘Default Site’ is just a name MS gave the default created one.

    Scenario # 2 (MULTIPLE IP TO SHARE)

    If you have either some private or public ip to spare, or at least until you do the exercise the only diference here is that sites you will set up and don’t have to specify the ‘Hostname’ per each site, as this is basically done in the DNS zones itself. The sites will respond for any request made to those ip’s on port 80 regardless.

    When will you need to use multiple Ip’s to serve websites. Well it all depends.

    Some reasons are: Network Isolation (Security), Applications which don’t work well under name based hosting, SSL Certificates Bindings 443(PRE II7), and mostly complete control over site. There are of course more reasons, but I’ll let others write a bit also.

    Have fun.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code in a web.config file of the default IIS site.
I have a web application that you can use to import information from another
I have Default.aspx page, which inherits from BasePage.cs, which inherits from System.Web.UI.Page. BasePage is
Say I have default content on the left side of my application, which is
I am using Symphony framework and I have the default sandbox inside the Eclipse
I have characters like these on our web site: Fémnyomó That is a street
I have two web applications in the same server like this: /basedir/app1path/default1.aspx /basedir/app2path/default2.aspx How
I have a Default.aspx that redirects to a Page1.aspx. My ddl is loaded and
I have a default IIS 6 install and I can access only .html files.
Do you have a default type that you prefer to use in your dealings

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.