Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

problem with multiple host headers using one IP address

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  App Domain can not be started  
Author Message
sburch

External


Since: Sep 30, 2003
Posts: 5



(Msg. 1) Posted: Tue Sep 30, 2003 12:51 pm
Post subject: problem with multiple host headers using one IP address
Archived from groups: microsoft>public>inetserver>iis (more info?)

We are running IIS V5.0 on Windows 2000 Server and I am
having problems with setting up multiple domain names
pointing to the correct files.

First off, it appears that if I have the same Default
Document name defined in more than one of the servers, I
am not confident that I will be routed to the correct
default file. (i.e. if default.htm is defined for /site1
under server1 and for /site2 under server2 I may
get /site1/default.htm when trying to go to the server2
site.

Secondly, say I create unique default documents for each
server, I am able to go to the correct default document,
but If I am required to log in and I am redirected to
login.cfm in server1. After I successfully go to the
correct login.cfm for server1 I can't go to the correct
login.cfm on server2. I keep getting the server1's
login.cfm, but not the supporting gifs, etc, for server1.

I know that this description sounds convoluted but the
problem is real and the irritation with IIS is real.

I wonder?

1. could their be a cache problem that retains the first
login.cfm?
2. can someone walk me through setting up the virtual
sites?
3. Is this a known problem?
4. Can we successfully have more than one "Host Header
Name" pointing to the same IP:port?
5. can someone help?

 >> Stay informed about: problem with multiple host headers using one IP address 
Back to top
Login to vote
user641

External


Since: Aug 22, 2003
Posts: 1637



(Msg. 2) Posted: Tue Sep 30, 2003 4:02 pm
Post subject: Re: problem with multiple host headers using one IP address [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Steve Burch" <sburch RemoveThis @jii.com> wrote in message
news:1c0c01c38773$07cd7500$3501280a@phx.gbl...
 > We are running IIS V5.0 on Windows 2000 Server and I am
 > having problems with setting up multiple domain names
 > pointing to the correct files.
 >
 > First off, it appears that if I have the same Default
 > Document name defined in more than one of the servers, I
 > am not confident that I will be routed to the correct
 > default file. (i.e. if default.htm is defined for /site1
 > under server1 and for /site2 under server2 I may
 > get /site1/default.htm when trying to go to the server2
 > site.

That's irrelevant and unrelated to host headers.

 > Secondly, say I create unique default documents for each
 > server, I am able to go to the correct default document,
 > but If I am required to log in and I am redirected to
 > login.cfm in server1. After I successfully go to the
 > correct login.cfm for server1 I can't go to the correct
 > login.cfm on server2. I keep getting the server1's
 > login.cfm, but not the supporting gifs, etc, for server1.
 >
 > I know that this description sounds convoluted but the
 > problem is real and the irritation with IIS is real.
 >
 > I wonder?
 >
 > 1. could their be a cache problem that retains the first
 > login.cfm?

No.

 > 2. can someone walk me through setting up the virtual
 > sites?

Lot's of info at:
<a style='text-decoration: underline;' href="http://www.iisfaq.com/default.aspx?View=P24&P=1" target="_blank">http://www.iisfaq.com/default.aspx?View=P24&P=1</a>
<a style='text-decoration: underline;' href="http://www.iisanswers.com/Top10FAQ/t10-hostheaders.htm" target="_blank">http://www.iisanswers.com/Top10FAQ/t10-hostheaders.htm</a>

 > 3. Is this a known problem?

No.

 > 4. Can we successfully have more than one "Host Header
 > Name" pointing to the same IP:port?

Yes - that's why you need Host Headers, because of a common IP/port.

 > 5. can someone help?

Virtual servers/webs really have no knowledge of one another as they are
wholly independent. If you keep getting sent to the wrong "server" after
going to the first one, I would suggest start with checking your code and
logon logic.

--
Tom Kaminski IIS MVP
<a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for running IIS
<a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/" target="_blank">http://mvp.support.microsoft.com/</a>
<a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: problem with multiple host headers using one IP address 
Back to top
Login to vote
sburch

External


Since: Sep 30, 2003
Posts: 5



(Msg. 3) Posted: Tue Sep 30, 2003 5:48 pm
Post subject: Re: problem with multiple host headers using one IP address [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 >-----Original Message-----
 >"Steve Burch" <sburch.TakeThisOut@jii.com> wrote in message
 >news:1c0c01c38773$07cd7500$3501280a@phx.gbl...
  >> We are running IIS V5.0 on Windows 2000 Server and I am
  >> having problems with setting up multiple domain names
  >> pointing to the correct files.
  >>
  >> First off, it appears that if I have the same Default
  >> Document name defined in more than one of the servers, I
  >> am not confident that I will be routed to the correct
  >> default file. (i.e. if default.htm is defined for /site1
  >> under server1 and for /site2 under server2 I may
  >> get /site1/default.htm when trying to go to the server2
  >> site.
 >
 >That's irrelevant and unrelated to host headers.
 >
  >> Secondly, say I create unique default documents for each
  >> server, I am able to go to the correct default document,
  >> but If I am required to log in and I am redirected to
  >> login.cfm in server1. After I successfully go to the
  >> correct login.cfm for server1 I can't go to the correct
  >> login.cfm on server2. I keep getting the server1's
  >> login.cfm, but not the supporting gifs, etc, for
server1.
  >>
  >> I know that this description sounds convoluted but the
  >> problem is real and the irritation with IIS is real.
  >>
  >> I wonder?
  >>
  >> 1. could their be a cache problem that retains the first
  >> login.cfm?
 >
 >No.


Tom,

I know that you say that this is irrevelant and unrelated
to the host headers but let me relay what I just did.

On our server we have two sites that require a login to
get into the protected areas of their individual site.
The developers of each site decided to use the
filename "login.cfm" for their login entry form document.
I did the following:

1. restarted the IIS server, on the server box, by going
into services, hyliting the "IIS Admin Service" and
clicking the "Restart Service" button.
2. I opened up IE on my personal system and browsed to
site 1. <a style='text-decoration: underline;' href="http://site1.domain.com/login.cfm" target="_blank">http://site1.domain.com/login.cfm</a> and it went to
the correct login.cfm which included the all of the
supported gif files, and I was able to log in.
3. I then, from my personal system, browsed to site 2.
<a style='text-decoration: underline;' href="http://site2.domain.com/login.cfm." target="_blank">http://site2.domain.com/login.cfm.</a> At this point site 1's
login.cfm file appeared but without the supporting gif
files and I could not log in.
4. I then did step 1 again.
5. This time I went to site 2 first. Worked great.
6. went to site 1 and it failed the same way as site 2 in
the first test.
7. I thought that it may be my personal system so I went
to another system and immediately went to site1's
login.cfm and it failed just as it did on my personal
system.
8. This proved to me that it was something with the IIS
Server or the sites that was causing the problem.
9. I then changed the login.cfm filename on site1 to
alogin.cfm and did step 1 again.
10. Both sites worked great.

It appeares to me that somehow the login.cfm file is being
retained in some cache location, or some place on the
server when I call that file for the first time. From
then on, no matter what system that I use to browse to the
site the first login.cfm file that I successfully reached,
after I restarted the "IIS Admin Server" is the file that
I always go to.

Do you have any ideas? As you can tell by the filenames
You should know that I am using ColdFusion on the server.
Of course the problem could be with the ColdFusion but I
have not restarted the cold fusion, Just the IIS Admin
Server. It could also be with a cookie or session
variable, except that I get the same inital wrong file
from a completely different system.

Thanks for any help that you can give me.

Steve

 >
  >> 2. can someone walk me through setting up the virtual
  >> sites?
 >
 >Lot's of info at:
 >http://www.iisfaq.com/default.aspx?View=P24&P=1
 >http://www.iisanswers.com/Top10FAQ/t10-hostheaders.htm
 >
  >> 3. Is this a known problem?
 >
 >No.
 >
  >> 4. Can we successfully have more than one "Host Header
  >> Name" pointing to the same IP:port?
 >
 >Yes - that's why you need Host Headers, because of a
common IP/port.
 >
  >> 5. can someone help?
 >
 >Virtual servers/webs really have no knowledge of one
another as they are
 >wholly independent. If you keep getting sent to the
wrong "server" after
 >going to the first one, I would suggest start with
checking your code and
 >logon logic.
 >
 >--
 >Tom Kaminski IIS MVP
 >http://www.iistoolshed.com/ - tools, scripts, and
utilities for running IIS
 >http://mvp.support.microsoft.com/
 >http://www.microsoft.com/windowsserver2003/community/cente
rs/iis/
 >
 >
 >
 >.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: problem with multiple host headers using one IP address 
Back to top
Login to vote
johndoe

External


Since: Oct 01, 2003
Posts: 2



(Msg. 4) Posted: Wed Oct 01, 2003 8:47 pm
Post subject: Re: problem with multiple host headers using one IP address [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

hi
smells like coldfusion issue..
cfmx 6.0 & 6.1 dont handle cfpage cache with multiple virtual hosts by
default without tweaking cache settings in some xml file.

i use site base path on application.cfm
eg: <cfset application.basepath="http://www.foobar.com">
and i use it all over templates.
eg: link to login a href="#application.basepath#/login.cfm"

what cf version ?
 >> Stay informed about: problem with multiple host headers using one IP address 
Back to top
Login to vote
user641

External


Since: Aug 22, 2003
Posts: 1637



(Msg. 5) Posted: Wed Oct 01, 2003 8:47 pm
Post subject: Re: problem with multiple host headers using one IP address [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

<johndoe DeleteThis @foobar.com> wrote in message
news:7f4mnv0shv1dmvbcn69ornfau23o3co3as@4ax.com...
 > hi
 > smells like coldfusion issue..
 > cfmx 6.0 & 6.1 dont handle cfpage cache with multiple virtual hosts by
 > default without tweaking cache settings in some xml file.
 >
 > i use site base path on application.cfm
 > eg: <cfset application.basepath="http://www.foobar.com">
 > and i use it all over templates.
 > eg: link to login a href="#application.basepath#/login.cfm"

which is what I was suggesting, but not being a CF user myself ...

--
Tom Kaminski IIS MVP
<a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for running IIS
<a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/" target="_blank">http://mvp.support.microsoft.com/</a>
<a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: problem with multiple host headers using one IP address 
Back to top
Login to vote
sburch

External


Since: Sep 30, 2003
Posts: 5



(Msg. 6) Posted: Wed Oct 01, 2003 8:47 pm
Post subject: Re: problem with multiple host headers using one IP address [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

ColdFusion 6.1 is our version.

You may be right. One of the two sites uses an
application.cfm file. The other site is a site that we are
migrating to our server from another company that built
the site for us and was hosting it on ColdFusion V5.0. I
have put it up on CF 5.0 and then moved it to CF 6.1. The
developers that built the site did not use an
application.cfm file.

I think I might need to do a mass search/replace all
references to "/filename.ext" with
a "#basepath#/filename.ext" and then set up an
application.cfm file.

I will try to do this and see if it fixes the problem.

Thanks johndoe.

Tom, Thank you for your input too. Once I get this
figured out I will post the answer here if you would like.

Again thanks,

Steve Burch


 >-----Original Message-----
 >hi
 >smells like coldfusion issue..
 >cfmx 6.0 & 6.1 dont handle cfpage cache with multiple
virtual hosts by
 >default without tweaking cache settings in some xml file.
 >
 >i use site base path on application.cfm
 >eg: <cfset application.basepath="http://www.foobar.com">
 >and i use it all over templates.
 >eg: link to login a
href="#application.basepath#/login.cfm"
 >
 >what cf version ?
 >
 >.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: problem with multiple host headers using one IP address 
Back to top
Login to vote
johndoe

External


Since: Oct 01, 2003
Posts: 2



(Msg. 7) Posted: Thu Oct 02, 2003 6:57 pm
Post subject: Re: problem with multiple host headers using one IP address [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

see macromedia doc
"ColdFusion MX (on multihomed servers) displays wrong page"
http://www.macromedia.com/support/coldfusion/ts/documents/tn18258.htm

application.cfm is similar than global.asp on asp side.
its globaly readed file containing your applications settings.
its valentary to use it.
my recommendatiion is at least keep on empty application.cfm file to
prevent cf to search it fro parent directories.. (in your case i
suspect this one..) use application.cfm!
macromedia kb has info about it.
http://www.macromedia.com/support/coldfusion/technotes.html

basepath is just a simple trick when you want to be sure about urls
when using multiple cf applications in same root or directory.

john doe
 >> Stay informed about: problem with multiple host headers using one IP address 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]