Cannot expose docker to port 443 as httpd is already running on on it

Operating System & Version
Centos 7.7
cPanel & WHM Version
84

Maragwa

Registered
Aug 29, 2020
2
0
1
Kenya
cPanel Access Level
Root Administrator
Am trying to expose my docker containers to port 443 but when I try to run nginx-proxy container I get an error that, port 443 is already in use. When i check httpd is listening to the port.Am using a VPS on Cento7.7. Is it advisable to disable httpd or this will make my other websites go down?
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
If your sites are using apache disabling would indeed cause them to fail. You can tell apache to listen on another port one you determine which webserver you need your sites to use by going to WHM>>Server Configuration>>Tweak Settings
 

Maragwa

Registered
Aug 29, 2020
2
0
1
Kenya
cPanel Access Level
Root Administrator
If your sites are using apache disabling would indeed cause them to fail. You can tell apache to listen on another port one you determine which webserver you need your sites to use by going to WHM>>Server Configuration>>Tweak Settings
When I change the port to something else the website goes down.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
Yes, that will indeed happen if the sites are using apache. As I noted previously, once you determine which webserver you'd like for your sites to be using you can change the port apache listens on. If you're not sure how to make these changes I would strongly urge you to enlist the assistance of a qualified system administrator. If you don't have one you might find one here: System Administration Services