Click here to Skip to main content
13,191,400 members (65,964 online)
Rate this:
Please Sign up or sign in to vote.
Dear Frnds,

I have two web applications, and i have only one server.

so how to host web applications using virtual directory.

I want to run this two applications using slash(/).

Please give me a good solutions. am trying a lot.

Thanks in ADVANCE.
Posted 5-Jan-13 18:28pm
Updated 5-Jan-13 20:04pm
Using slash?! ???
What's wrong about just reading the IIS user manual? This is not even a question of developer's level...
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

What exactly do you want to do HYD? not clear
of course, there is no problem hosting multiple sites in IIS 6 (or any other)
in one or more virtual directories, that's what the Internet Information Services was created for.
What do you mean when you type "using slash(/)"?

Try to elaborate on your need or problem you encountered.

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Since the web server can not read minds, it has to use something to tell requests apart between applications/sites. You have three choices:
1) different ports and one IP
2) different IP
3) using CNAME aliases
Here is the howto for IIS6 for all three cases, look at the menu on the left:[^]

This later option is used by the service providers to do simple web hosting. The browser sends out a Host header[^] in the http request. This is used by IIS to distinguish between targets on the same web server. Simple and easy. All you have to do is add a CNAME alias with a friendly name to DNS at the level you need (in your case this will be most likely the company DNS server).
Let's suppose, your machine is, and you have app1 and app2, than you should register two CNAME records[^] in the DNS: and, both pointing to the original server name. Than you can assign these aliases to your sites. That's all.
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

I agree with the above posters. There is a lot of information on the web to help you with the same. Hope the below will point you in the right direction.

Try the following for each website -

1. Create a virtual directory under 'Default web site' with appropriate name (the name you want after slash [/] )

2. Set the following properties appropriately
- Application pool (optional)
- default document
- security (anonymous/basic/windows)
- correct version of

I am Assuming you have a working webserver and can access the default website.
There is sufficient documentation on the web for each of the points above.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171017.1 | Last Updated 6 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100