Quantcast
Channel: ColdFusion
Viewing all articles
Browse latest Browse all 1091

Why should we use WebSocket Proxy?

$
0
0

This is the first in a series of posts on WebSocket proxy configuration.

ColdFusion uses dedicated port (8575/8577) to start its internal WebSocket Server by default. Earlier, these ports were required to be always accessible from outside. This setup works well for intranet applications. But for public facing web applications, it is not advisable to keep port open and let it be accessible from outside.

ColdFusion 11 has introduced proxy support for WebSocket. There is a new proxy module that can be configured with IIS and Apache Web Server which intercept ColdFusion WebSocket requests and redirect the requests to the ColdFusion’s internal WebSocket Server. Now, web applications communicate to WebSocket server over the same port on which web application is running.

How to start WebSocket proxy service?

In order to start WebSocket proxy service follow steps mentioned below:

  • Login to ColdFusion Administrator.
  • Navigate to Server Settings > WebSocket.
  • Select “Use Proxy” option under Enable WebSocket Service.
  •  Submit Changes.
  • Restart ColdFusion Application service.
  •  

    How to configure WebSocket proxy with ColdFusion?

    We have shipped WebSocket Proxy Configuration tool along with ColdFusion 11 which can be used to configure WebSocket proxy with IIS and Apache Web Server on all supported platforms.

    WebSocket Proxy Configuration tool can be located at:

    •  <cf_install_root>/cfusion/bin/wsproxyconfig.exe(for windows platform)
    •  <cf_install_root>/cfusion/bin/wsproxyconfig.sh(for non-windows platform)

    Supported web servers with WebSocket proxy:

    • IIS 8 or above
    • Apache Web Server 2.2.*

    Upcoming posts in this series:

    • How to configure WebSocket proxy with IIS
    • How to configure WebSocket proxy with Apache Web Server
    • Tuning ColdFusion 11 WebSocket proxy configuration with IIS 8 or above

     


    Viewing all articles
    Browse latest Browse all 1091

    Trending Articles