Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Sites by Port with 1 IP on Dev Server

Status
Not open for further replies.

Rebies

Programmer
Mar 7, 2002
58
US
Okay, I've searched high and low and figure I am missing something simple - or IIS is extremely stupid. ;)

I have a development server with one IP address on it. No domain names are pointing to the development server, but I need it to put multiple sites on it. I would like to access the sites by 127.0.0.1:80 and 127.0.0.1:8080 and 127.0.0.1:8888 and so forth. (Same IP, different ports)

I realize to add multiple sites by TCP Port you go to MMC, Right Click on the web server, click "Properties", click on "Advanced" next to IP Address and add a new site. (And yes, I could do this with host headers or Ports - it is the same thing, just a differnt way of doing it.)

This works fine.... HOWEVER, all three URLs point to the same directory. I can access 127.0.0.1:80 127.0.0.1:8080 and 127.0.0.1:8888, but they all lead to the same place and thus the same content. :(

How to fix this, I am completely baffeled... ???

As I see it you can't change this. Because when you click on the "Home Directory" tab you can only alter the home directory for this specific web server. (ie. all three web sites I have added.) But then again, I am by no means an IIS guru and thats why I'm asking!

How can I point all three addresses/ports to different physical paths on the computer?

Thanks for any help in advance!

Rebies





FYII: I need to do this because the sites do not function properly if I can not refer to images by using "/images/thisimage.jpg" and the same goes for all links, SSI, and Cold Fusion inclusions. Thus, each site has to be at the root directory so that nothing needs to be changed when uploaded from the development server to the actual servers.
 
A few other things to note:

I am running IIS 5.0

I have read to add a new web site you right click on the computer in MMC and select Add > New Web Site. However I do not seem to have this option in MMC. From what I have read I *think* this applies to IIS 4 and not 5. Or am I wrong and might it have something to do with running Windows 2000 Professional on this computer instead of Windows 2000 Server???


Rebies
 
>I realize to add multiple sites by TCP Port you go to
>MMC, Right Click on the web server, click "Properties",
>click on "Advanced" next to IP Address and add a new
>site.

No. This is NOT the right way to do this. This simply sets up multiple IP's, Ports, Host headers to THE SAME web site.

You need to create a NEW WEB site (in MMC click Action | New | Site) and give that the non-standard port number.
 
You cannot set up mulitple sites on a Win2KPro box. You need Server to have the config capibilites of IP's and ports and the like. You are given subdirectories aka, virtual directories. Using this you can create a top level menu in order to redirect your users to the proper application. If you do end up putting server on the box then you can also reference the sites by HTTP host headers, if the box moves out of dev and into production.
 
Thanks for the info. I was really starting to believe this was true as of last night.

Can anyone then tell me the ohter differences in Windows Professional, Server, Advanced Server and DataCenter are then? I understand each can support more processors and more memory then the previous versions, but that is about all Microsoft really says about it.

( ) Shows some other differences between the Server family, but ABSOLUTELY NOWHERE was I able to read that Professional only supports one Web Site! What else might be the differences in these OS's that I might get stumped on in the future?

And thanks again for the replys. You just confirmed my worst fears (because now I gotta get and reformat this development machine!)

Rebies
 
Number of connections is limited to 10. (this is the big one)
bandwidth %, processor %
HTTP compression

Genisix
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top