Multiple Websites hosted on 2003 Server

krhoades7601
krhoades7601 used Ask the Experts™
on
Good Afternoon!

About 8 months ago, I set up a server in order to host our website internally instead of having it somewhere else.  I worked with a company that was designing our website and they had me install various pieces of software in order to get things working as I am not an IIS expert!  The configuration is as follows:

Server 2003 Service Pack 2 (Virtual Server sitting in DMZ behind an ASA 5510)
IIS 6.0
MySQL
PHP
PHPMyAdmin
Drupal
Helicon ISAPI_Rewrite 3 (free)
IIS 7.0 Extension
CGI

This was setup in IIS as the default website.  Everything has been working like a charm.  Now, my boss wants to host two more websites internally and I cannot seem to get things working.  Since I only have one outside IP address, I figured I would have to use something like host headers.  

First, I went into the TCP/IP properties and bound another IP address in the DMZ to the nic card.  Next, I went through the steps of creating a new website and choosing the different IP address and two new headers www.nameofcompany.com and nameofcompany.com.

From within IIS I right click on the website and choose browse and I can see the website displays.  If I go to http://localhost/nameofcompany.com it will display the default website.  I am not sure if this is because the Helicon ISAPI_Rewrite 3 is installed and redirecting my website.  

Any suggestions would be greatly appreciated.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Should new websites be visible from "outside" world (public internet)?
Top Expert 2016
Commented:
if you are using host headers and/or ip address then right clicking on the website will bring up localhost (which is port 127.0.0.1 | :::1 which is not the port that the new website is expecting ALSO since you are also using  host headers then http://localhost/ is not the host-header that is configured for this website.

Only  http://hostheadername/ will bring up the website ..

First, I went into the TCP/IP properties and bound another IP address in the DMZ to the nic card.  Next, I went through the steps of creating a new website and choosing the different IP address and two new headers www.nameofcompany.com and nameofcompany.com.

The webserver will NOT see this external ip address it will only see the ip address of the network card. Using a unique ip address is only viable if you have multiple network connections AND if this address is the actual ip address of the NIC.

you will also have to create a new dns zone with the domain name you desire to use. and have the appropriate A records to point to the web server  (you can fudge this by editing the hosts file on the test pc)

I only use bindings and either change the dns or edit the hosts file for local testing.
i.e.  127.0.0.1 mycompanyname.com and 127.0.0.1 www.mycompanyname.com so now if I browse to http://mycompanyname.com the webserver will see the host header and route things appropriately.

A network card can only have 1 IP address unless we are dealing with vlans or other exotic configurations.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial