- Edited
I add my own domain in TinyCP, and set it to listen to a custom port, say *:12345 or localhost:12345.
apache2ctl -S shows that it's added:
*:12345 my.own.tld (/opt/tinycp/domains/my.own.tld/apache.conf:1)
But restarting Apache won't make it listen on that port. It seems to only listen to *:80 and *:443 no matter what I define:
apache2 14474 root 4u IPv6 1605444883 0t0 TCP *:http (LISTEN)
apache2 14474 root 6u IPv6 1605444887 0t0 TCP *:https (LISTEN)
apache2 16217 www-data 4u IPv6 1605444883 0t0 TCP *:http (LISTEN)
apache2 16217 www-data 6u IPv6 1605444887 0t0 TCP *:https (LISTEN)
apache2 16218 www-data 4u IPv6 1605444883 0t0 TCP *:http (LISTEN)
apache2 16218 www-data 6u IPv6 1605444887 0t0 TCP *:https (LISTEN)
apache2 16219 www-data 4u IPv6 1605444883 0t0 TCP *:http (LISTEN)
apache2 16219 www-data 6u IPv6 1605444887 0t0 TCP *:https (LISTEN)
(Domain anonymized)
Seems to be Apache specific, nginx runs as expected.
(Tested on Debian 9 and Debian 10)