Skip to main content
Known Participant
November 4, 2009
Question

Coldfusion migration from Windows to Linux - problem

  • November 4, 2009
  • 3 replies
  • 5546 views

We have recently moved our website hosting from a Windows based server at one company to a Linux based server at a different hosting company.  I have made the neccessary changes to Coldfusion (application.cfm to Application.cfm, etc.)  And most of our site works fine.  There is one area, though, that is still giving me some problems.

We have a site management area that allows us to log in and update ads and subscriptions.  However, this part of our site is not working.  When we try to get into that error, we recieve an error message.  In Firefox, the error states:  "Firefox has detected that the server is redirecting the request for this address in a way that will never complete."

The only code changes I made were to correct the case sensitive parts of of the code.  No other changes were made.  Does anyone have an idea if there is something else I need to look at that would cause this problem with Linux and not Windows?

Thanks.

Jason

    This topic has been closed for replies.

    3 replies

    Inspiring
    November 4, 2009

    The only code changes I made were to correct the case sensitive parts of of the code.  No other changes were made.  Does anyone have an idea if there is something else I need to look at that would cause this problem with Linux and not Windows?


    Your web server has changed as well, as well as your CF install.  How did you migrate all the settings from one CF server to the new one?  Have you checked your Apache config for incorrect aliasing or any other sort of mis-config that could be interfering.

    It's not likely to be our code because that's the one thing that hasn't changed (beyond casing issues).

    It might pay to do a source control check-out the old version of your code (the production code from the windows box) to a temp dir, then chuck the current production files over the top, and do a diff on each modified file to make sure when fixing casing issues you didn't inadvertantly change an entire file by accident or something (careless copy and paste or that sort of thing).

    --

    Adam

    ilssac
    Inspiring
    November 4, 2009

    The thread has been marked as answered, but the poster did not indicate what the answer actually was so I wonder what the issue turned out to be.

    ilssac
    Inspiring
    November 4, 2009

    You want to focus on those <cflocation...> tags.  Are the variables properly defined, are they going where they are supposed to go.  Somewhere in there is an endless loop of redirects.

    Known Participant
    November 4, 2009

    Thanks.  I'll refocus in those areas.  I appreciate the help!

    ilssac
    Inspiring
    November 4, 2009

    Pay close attention to any redirects in an Application.cfm/cfc file.

    It is a common error where one has login logic in an Application.cfm or cfc file that redirects to a login form.  But when the form page is requested, the Application file is included and the file is redirected to the loging form because the user is not logged in.  But before the form is dispayed the Application file is included and the file is redirected to the login form because the user is not loged in. Ad infinitum.

    One, of many, method to prevent this endless loop is that the redirect logic is wrapped in a <cfif...> block that tests that the file  that is being reqeusted is not the login form before redirecting the user to the login form.  If this test of the file name is case sensitive and you changed the case of a relevant file, that could have caused this problem.

    ilssac
    Inspiring
    November 4, 2009

    That error usually indicates and endless relocation loop.  I.E page A is relocating to page B which relocates to page A.

    Known Participant
    November 4, 2009

    Yeah, I've been looking at that for days and I cannot, for the life of me, find anything that would be redirecting it that way.  Guess I need to look at it again, even more closely.

    Thanks!

    Jason

    Known Participant
    November 4, 2009

    By the way, here are the three files where I think the problem resides.  Hope you can help a blind man!