Click here to Skip to main content
Rate this: bad
good
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
Edited 5-Jan-13 20:04pm
Indivara32.8K
v2
Comments
Sergey Alexandrovich Kryukov at 6-Jan-13 1:21am
   
Using slash?! ???
What's wrong about just reading the IIS user manual? This is not even a question of developer's level...
—SA
Rate this: bad
good
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.
 
Cheers,
Edo
  Permalink  
Rate this: bad
good
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: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/55161df5-5f55-4ed3-bb26-b675153d49ac.mspx?mfr=true[^]
 
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 server1.domain.com, and you have app1 and app2, than you should register two CNAME records[^] in the DNS: app1.domain.com and app2.domain.com, both pointing to the original server name. Than you can assign these aliases to your sites. That's all.
  Permalink  
v3
Rate this: bad
good
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 asp.net
 

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.
 
Cheers
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 410
1 Abhinav S 260
2 Nirav Prabtani 252
3 Andreas Gieriet 155
4 Dave Kreskowiak 155
0 OriginalGriff 7,545
1 Sergey Alexandrovich Kryukov 6,757
2 Maciej Los 3,909
3 Peter Leow 3,693
4 CHill60 2,712


Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 6 Jan 2013
Copyright © CodeProject, 1999-2014
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