Wiki Navigation

Multiple HTTP Servers

Implementing multiple HTTP servers as described in CherryPy Essentials is no longer supported (see ticket #752, not there anymore?). I have been able to develop an alternative method that replaces it.

This method uses a configuration file, so you will have to rework it if you want the configuration data to be hard-coded.

Here is an example of the httpservers.ini configuration file:

#httpservers.ini
[HTTP_Addresses]
Host_1:192.168.0.10
Port_1:8080
Host_2:LOCALHOST# This will be changed to 127.0.0.1
Port_2:8008
Host_3:[::1]# IPv6 may not be valid on old systems
Port_3:# If blank or nonexistent will default to 80

Note that this is a standard format ini file, not the CherryPy version that requires values that are Python datatypes.