I am experiencing a very frustrating problem and hoping someone can illuminate me on why. Here is the situation:
-
Site is running under ColdFusion 9.x on Windows 2003.
-
We are using the ISAPIRewrite/3 for SES URLs
-
The routes.cfm has been modified so that it does not include the index.cfm
-
Routes.cfm is using cgi.http_host for the setBaseURL
-
There is an SSL interceptor that checks to see if the user is accessing the site via HTTPS. If not, it redirects them to the SSL
-
RequestDecorator has been extended to change the default from for the SSL parameter to true
EVERYTHING works fine for a while. Then suddenly, the system starts redirecting the user to the IP address. Normally, this is the IP that the SSL is bound to (but in a couple of cases, not). When this happens, the system thinks it is running in production mode, rather than test or development mode.
This problem is only happening on the TEST server, which is separate from the production site. The coldbox.cfc does implement the environment features, but the default is currently set to production unless the site has the hostname that includes api-test or api-dev.
The only way I have found to resolve this issue is to reboot the server, or stop/start IISAdmin and CF.
Note that on the production system, there is also a site that uses the same features, however, it is not using the URLRewrite/3 modules and it includes index.cfm.
If anyone can recommend a solution, it would be much appreciated!
Cheers and a great weekend to everyone.
Kevin S. Anderson | President
Superlative Solutions, Inc.
1475 Casson Ct. | Colorado Springs, CO 80919
Tel: 719.630.1529 | Fax: 866.708.5599 | Cell: 719.930.2599