Control Web Panel
WebPanel => CentOS Configuration => Topic started by: Steff on May 28, 2025, 02:34:23 PM
-
OK guy's due to local issues I've had to reduce down to one server and one public ip. This means that I have to run Traefik as a gateway reverse proxy and place CWP behind that running apache on 8080 and 8443.
My intention is to put a passthrough from Traefik to CWP to allow CWP to issue SSL to the hosted domains and Traefik will handle any SSL requests for on the VM's on the server separately.
Now I've edited /usr/local/apache/conf/extra/httpd-ssl.conf
and changed the ports to 8443 and restarted Apache, but it still seems bound to 443. So I edited each host file and changed them to 8443 as well, but Apache still holds on to 443.
Where can I find the definitive settings to change both 80 and 443 on Apache please? :o
-
You'll have to manually edit the Apache .conf files at: /usr/local/apache/conf.d/vhosts/ for both .conf & .ssl.conf
And then lock those files with chattr, because the nightly script will reset them.
-
Thanks for the reply Starburst:
So edit the conf to 8080
and the canf sll to 8443 on all vhosts and then lock the files.
These are the Vhost files that I tried to do that with and then restarted apache, but Apache was still using 443 somewhere else
-
Try running
netstat -tulpn
Look for the local address that ends with :443
On the right column is will says what PID/Program is using that port.
-
Thanks Starburst.
I have now changed all of the ports and hope that I can tunnel in to CWP from the reverse proxy.
Thanks for all of your help