Multiple IP addresses and ports

New features and PHP versions are branded here
Post Reply
User avatar
mwiede
Site Admin
Posts: 34
Joined: Fri Oct 27, 2017 12:56 pm
Location: Germany
Contact:

Multiple IP addresses and ports

Post by mwiede » Thu Apr 08, 2021 6:21 pm

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

Post Reply