Error: "ColdFusion Server is unavailable" when Configuring IIS 6.0 with NTLM using the Verify That File Exists option when accessing the Coldfusion Administrator Server Monitor(ColdFusion 8)
Issue
When Adobe ColdFusion 8 is configured with IIS NTLM authentication (using theVerify That File Exists option over http and https), the server monitor in the ColdFusion Administrator is unreachable and reports the following message:
"ColdFusion Server is unavailable"
Reason
Some ColdFusion files and folders do not actually exist, so whenNTLM uses the Verify That File Exists option,IIS security will prevent the page from being displayed. Additionally as the ColdFusion administrator is built using Adobe Flex, some additional changes need to be made to get it to work over https.
Solution
Do one of the following solutions:
Solution 1: Using http
In your web root, add an empty folder named flex2gateway.
Solution 2: Using https
- Access the Coldfusion Administrator using the IP address and not the domain name.
- If using the multi-server monitor and allowing access from a different IP/domain, you may want to look at the following article (devNet).
- In your web root, add an empty folder named flex2gateway and inside this folder create a folder named cfamfsecure.
- Open the remoting-config.xml file that is located in the following two locations:
- {cfroot}\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\flex
- {cfroot}\wwwroot\WEB-INF\flex
- Make the following change to the remoting-config.xml file:
- Add
<channel ref="my-cfamf-secure"/>to two locations within the file. Make sure to add it above<channel ref="my-cfamf"/>.<default-channels>
<channel ref="my-cfamf-secure"/>
<channel ref="my-cfamf"/>
</default-channels>
<destination id="ColdFusion">
<channels>
<channel ref="my-cfamf-secure"/>
<channel ref="my-cfamf"/>
</channels>
- Add
- Open the services-config.xml file that is located in the following two locations:
- {cfroot}\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\flex
- {cfroot}\wwwroot\WEB-INF\flex
- Add the following definition to the servies-config.xml file, if it does not exist. If it does make sure it has the 'add-no-cache-headers' tags:
<channel-definition id="my-cfamf-secure" outputclass="mx.messaging.channels.SecureAMFChannel">
<endpoint
uri="https://{server.name}:{server.port}{context.root}/flex2gateway/cfamfsecure"
class="flex.messaging.endpoints.SecureAMFEndpoint"/>
<properties>
<polling-enabled>false</polling-enabled>
<serialization>
<instantiate-types>false</instantiate-types>
</serialization>
<add-no-cache-headers>false</add-no-cache-headers>
</properties> - Add the following definition to the servies-config.xml file, if it does not exist. If it does make sure it has the 'add-no-cache-headers' tags:
<channel-definition id="my-cfamf" outputclass="mx.messaging.channels.AMFChannel">
<endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/"
class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<polling-enabled>false</polling-enabled>
<serialization>
<instantiate-types>false</instantiate-types>
</serialization>
<add-no-cache-headers>false</add-no-cache-headers>
</properties> - Restart ColdFusion.
This content requires Flash
To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.
Download the free Flash Player now!
