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

Serious problem with VHosts & CF 2

Status
Not open for further replies.

Wullie

Programmer
Mar 17, 2001
3,674
GB
Hi all,

I have encountered a serious problem with CF MX and was hoping that someone on here knows a fix for it or can point out a stupid mistake that I have made.

I have 5 virtualhosts on an Apache server using Coldfusion and noticed that some of the domains were overlapping and showing pages from the wrong domain, I have since found out that there is a problem with filenames.

Take the following scenario:

Domain 1 and domain 2 are on the same server and both use CF. Both domains have an index page called index.cfm and both domains have nothing to do with each other apart from being on the same server.

If I call up domain 1 in my browser it shows fine, but then I call up domain 2 and see the index page of domain 1 with all links broken as the browser is looking in domain 2 for domain 1 files which obviously are not there.

Now the big problem!

ANYONE that now views either domain sees domain 1 with the broken files, as the server seems to cache the filenames and doesn’t realise that they are different domains. This happens with all domains and all files, only filenames that are unique server-wide are ok and all others are messed up.

The confusing part about this is that a restart of either CF or Apache seems to fix the problem until the page is called again, then as before that domain is cached and shows across all other domains.

I have played with the CF cache settings and also every other setting that I can think of but this still happens. I have tried Apache 1.3.x and Apache 2.x with the same problem on both.

I am starting to confuse myself so I will give up now.

Has anyone heard of this or know of a fix?

Thanks in advance,
Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
its all down to the way that MM have told CFMX to behave in a multi homed environment - like yours!

What it will do is to cache pages that are of the same name - helpful hey!!!

have a look at this on the MM site, it describes how to turn off this functionality!


hope this helps!

Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top