Table of Contents
Port Multiplexing
Prosody can handle multiple protocols on a single port. This allows you to offer both XMPP and HTTP on port 80 for example.
Usage
To use multiplexed ports, use the 'ports' and 'ssl_ports' option in the configuration file:
The following makes Prosody accept HTTP, XMPP client, XMPP server and XMPP component connections on each of these three ports:
ports = { 5222, 5269, 80 };
And the following makes Prosody accept HTTPS, XMPP legacy SSL connections on both the specified ports:
ssl_ports = { 443, 5223 };
Note that when multiplexing is enabled, Prosody does not listen on any other ports by default (i.e., if multiplexing is enabled, Prosody would not listen on the default client port 5222, unless that's explicitly specified.
Configuration
| Option | Default | Notes |
|---|---|---|
| ports | {5222, 5269} | Ports which handle HTTP, XMPP client, S2S and component connections |
| ssl_ports | {} | Ports which handle HTTPS and legacy SSL connections |
