Author Topic: Change ports 80 and 443  (Read 89 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Change ports 80 and 443
« 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
Code: [Select]
/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

Offline
*****
Re: Change ports 80 and 443
« Reply #1 on: May 28, 2025, 04:25:11 PM »
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.

Offline
*
Re: Change ports 80 and 443
« Reply #2 on: May 28, 2025, 04:40:57 PM »
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

Offline
*****
Re: Change ports 80 and 443
« Reply #3 on: May 28, 2025, 06:37:21 PM »
Try running
Code: [Select]
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.

Offline
*
Re: Change ports 80 and 443
« Reply #4 on: May 29, 2025, 04:36:45 PM »
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