Page 1 of 1

Multiple IP addresses and ports

Posted: Thu Apr 08, 2021 6:21 pm
by mwiede
You can bind WWebserver to several (or all) IP addresses and ports without starting new instances of the CLI version.

You can define multiple IPV4 addresses or hostnames separated by comma. You can write the port direct into the hostname.

For example:

Code: Select all

localhost,localhost:8080,localhost:9090
will bind to 127.0.0.1 port 80 and 8080 and 9090.

In cfg\init.txt you can define extra bindings for SSL. For example:

Code: Select all

httpsHost = 127.0.0.1, 127.0.0.1:4430
will bind HTTPS to port 443 (default) and 4430.

You can also bind to all IP addresses available with:

Code: Select all

httpHost = all
httpsHost = all
Take a look at cfg\vhost.txt to define virtual hosts for different port bindings. For example:

Code: Select all

localhost_9090=localhost:9090;C:\localhost_9090