Click here to Skip to main content
15,907,392 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
Hi Friends,

i have 3 sites like Samp1,samp2,samp3..

now my url like www.samp.com

i need its like www.samp.com/samp1.....its open samp1 site
and www.samp.com/samps.....its open samp2 site
,e www.samp.com/sam31.....its open samp3 site...

plz any idea about this share with me.
Posted

Yes, you can do it in IIS of Windows 2000 Server easily

After you create the new web site, right click the site to go to Properties, click Advanced... button at the right of IP Address box,
then click Add... to add a Host Header. The host header is the domain name that tells IIS which site to retrieve (since many sites share one IP). Tips: one web site can have mutliple domain names too by adding more Host Headers.

The only drawback is you can't browse the site by using IP such as http://123.123.123.123. Without the host header, IIS doesn't know which site you want to access. Another thing is you can't use this single IP to setup multiple ftp sites. IIS doesn't support multiple ftp Servers to sit on one IP (can't add host header too). You can use one ftp site for all customers, then create mutliple virtual directory so the customers can logon and be mapped to their individual wwwroot (also their ftproot).

I am not sure whether Windows .NET can support multiple ftp host header. You may check it out.

Hope this helps.
 
Share this answer
 
The way you formulated it, it presents no problem at all. What you want is equivalent to having technically one site made of three unrelated directories; just put each of your developed sites in a separate directory on a top level.

Perhaps, you wanted something more complex, but then please explain it. One options is using three sub-domain. You will need just three additional DNS entries.

—SA
 
Share this answer
 
Craete 3 virtual directory under the same root which is point to the your IP
samp1
samp2
samp3
 
Share this answer
 
v2

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