IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old March 22nd, 2004, 06:52 AM
andycharger andycharger is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 5 andycharger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
2 web sites but only one works

I have 2 intranets sitting on my Windows 2000 server at work.

For this example, lets call them website1 and website2.

In my hosts file in winnt/system32/drivers/etc I have added the following 2 entries

10.0.0.225 website1

10.0.0.225/website2 website2

In have set the 2 web sites up in IIS and they work fine if I type the ip address and the name (i.e. http://10.0.0.225/website2)

However, when I type http://website1 it appears correctly.

When I type http://website2 is gives me "page cannot be displayed" errors.

Anyone know what im doing wrong?

Reply With Quote
  #2  
Old March 22nd, 2004, 04:54 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,717 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 40 m 34 sec
Reputation Power: 688
I don't think you can do what you did in the hosts file for website 2

DNS doesn't consider subdirectories

Probably if you go to http://website1/website2 it will work. I would normally just create two different virtual directories for the websites, and one DNS/hosts entry
__________________
======
Doug G
======
"Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton

Reply With Quote
  #3  
Old March 23rd, 2004, 03:28 AM
andycharger andycharger is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 5 andycharger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks but....

I want my server to be able to deliver my 2 websites to the desktop by just typing in 1 of 2 words.
My 2 websites are called Mantis and Megabytes.

Megabytes has been working fine for ages. It has a virtual directory under the Default WEb Site in IIS and has its own web site on IIS just to make sure I did it correctly.

However now I want to add Mantis to it too.

What I beleive you are telling me to do is make mantis a subdirectory of megabytes?

i.e. http://megabytes/mantis

Unfortunately, I cannot do this as my users wont understand it!
They need to just be able to type Mantis

Anyway, I have changed my HOSTS file on the server to read like this:
10.0.0.225 megabytes
10.0.0.225 mantis

WhenI open a browser on the server and I type mantis , it works! however, when I go to a client machine, it still comes back with page cannot be displayed!

Any ideas what I need to do to get my clients to be able to hit the site?
I have created both a virtual directory and a web site for Mantis, just like Megabytes.

Reply With Quote
  #4  
Old March 23rd, 2004, 11:25 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,717 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 40 m 34 sec
Reputation Power: 688
The hosts file on the server will not help clients resolve mantis to the correct IP. You will need to make that change in the client hosts file.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > 2 web sites but only one works


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway