Friday, 31 October 2014

How to redirect requests (in IIS), to a particular ColdFusion server when multiple versions (CF 9,10,11 etc.) are installed?


How to redirect requests (in IIS), to a particular ColdFusion server when multiple versions (CF 9,10,11 etc.) are installed?

Introduction:
                We often install multiple versions of ColdFusion in our system and may need to redirect the requests, amongst these versions, based on the need.
Solution:
Open IIS and single click on the WebServer


In the “Features View” – in the centre of the IIS Screen, we will have an option – “Handler Mappings”.
 Handler Mappings is responsible for redirecting the requests to particular servers.
On double clicking Handler Mappings, we will find a lot of mappings. Amongst them, we will have to modify –
1.       cfmHandler
2.       cfcHandler
3.       cfmlHandler
4.       cfrHandler
5.       cfswfHandler



Right Click on cfcHandler and select “Edit”.

 
We will find the “Executable” path pointing to the “isapi_redirect.dll” file present in the coldfusion server. We will have to change this pointer to point to the dll file present in the coldfusion server (C:\ColdFusion10\config\wsconfig\1) to which we wish to redirect the requests.
We will do the same and change the Executable pointers of others (cfmHandler,cfmlHandler,cfrHandler,cfswfHandler) to the required coldfusion server.


That’s it!! Its done. J



No comments:

Post a Comment