Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
1.00/5 (1 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
Updated 5-Jan-13 20:04pm
v2
Comments
Sergey Alexandrovich Kryukov 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

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
 
Share this answer
 
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.
 
Share this answer
 
v3
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
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900