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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Websites on one IIS Server. How to???? 1

Status
Not open for further replies.

paunescu

Technical User
Feb 28, 2006
10
US
OK. How do I do this.
I have to consolidate 2 websites into one. I have to move 1 IIS Site to another and combine them.

Both sites are INTRANET SITES for the company here.

What I did:

One of the sites is running no problem. The directory is set to d:\inetpub\
The site that I want to move over is as follows:

Directory: d:\desktopsupport\inetpub\
I then go into IIS Manager and setup a NEW WEBSITE. Go thru the options and choose the directory as you see above.

When I try to goto the site thru IE, nothing comes up. I did do a DNS Entry for this name to goto this server, but still nothing.

Where am I going wrong? Did I setup the site WRONG?

Please, if anyone knows this, I VERY MUCH appreciate your help. Meanwhile still gonna keep trying.

NOTE: I copied the ENTIRE INETPUB directory from the server that is being taken down and put it under the d:\desktopsupport directory. I am not sure if I did that correctly or not.

THANK YOU VERY VERY MUCH...
 
On your IIS you have two web-sites sharing the Same IP address, correct?
Very simple solution:
In the properties of each web-site you are going to add a host header. Which really is the name that you created in your DNS server.

Example:
DNS:
(CNAME)Website1.mydomain.com - 10.0.1.12 (IP or name of web server)
(CNAME)Website2.mydomain.com - 10.0.1.12 (IP or name Web Server

IIS:
Do this on each web-site in IIS.
Right-Click properties -> Web Site Tab, click the Advanced button -> Multiple Identities for this web site, click the Add buttom. Type in the port and host Headder Value(website1.mydomain.com)
Repeat on your second web-site....


When IIS get a request for either site1 or site2 it will know which site to present to the client.

 
Thank you very much for the help. I did as you said, and the first site works as before, but the new moved site does not. I get page cannot be displayed and states to search for HTTP ERROR 404.

Anything else I can do to make this work, or find the issue?

Thank You...
 
From the Second Sites properties. Look at the documents tab and make sure your homepage is listed. If your home page name is myhomepage.html or myhomepage.asp - Make sure it is listed and Enable default content page is checked.

Also make sure your directory path is pointing to the location of the files on the hard drive. Check this on the Home Directory Tab.
 
Yes they are both set. Default.asp and the directory.

d:\desktopsupport\inetpub\
I will have to look into it more. I dont know why it doesnt work. I will probably create a basic html file and directory and set a dummy site to see if it works and take it from there.
It should work the way its setup now, but I dont know why it wont work.

Thankx.
 
OK I did a little more testing and found this, which is weird, well to me.

I created a new site with the same name (Desktop). I put html file in the folder and setup and completed everything as needed. Tried to browse, and worked no problems as all, the site came out, etc etc.

Now, I created a simple little ASP file and called it Default.asp. I went into the Documents tab of the site setup and told it as default file to be Default.asp instead of index.html

When I tried to goto the site, NOTHING COMES UP, comes up with Error 404.

Why is that? Why wont it take ASP but takes HTML ONLY? Do I have to do something else to make it work?

Thankx for your help VERY MUCH...
 
OK hold on....
Let say the name of your home page is myhomepage.html - Just want to make sure that myhomepage.html is entered into the default content page. So when clients hit that web-site they are presented with that page.

I was using .html and .asp as an example. Basically HTML is static web content where .asp is dynamic web content. The reason you are getting that error is that you do not have ASP running on your web-server - Don't activate it if you are not using .asp pages.

So, with that said. What is the extension of the homepage of the site that is not working?
 
The site that is NOT working is the one with the ASP. My new site that I am moving over is ASP ONLY. The other site that works is HTML ONLY.

So I am not sure what I am supposed to enable to change. I dont know if there is anything I can change. I looked at the server where this ASP Site used to run from, and compared it with the new one. I dont see much difference, but again its 2 differnt OS systems too, so I cant compare much.

Thankx again for your help. If you can think of anyhting else I forgot, please let me know.

Thankx
 
OK, so the site requires ASP.
Launch IIS Manager (i am assuming IIS 6.0 on Win2003). Click on 'Web Service Extensions' folder. You should see 'Active Server Pages' - Highlight 'Active Server Pages' and click the Allow button. This will not affect your other site that is using HTML. This just enalbes the IIS server to host dynamic content (.asp)

Please report back...
 
Yes, the Web Service was in a differnt location, but that DID IT. THANK YOU VERY VERY MUCH.

I dont know how I missed that part. U are owesome. THANK YOU...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top