Docker container with Apache as reverse proxy in WHM

Operating System & Version
AlmaLinux 8.8
cPanel & WHM Version
112.0.5

tanchev

Registered
Aug 2, 2023
3
1
3
StackOverflow
cPanel Access Level
Root Administrator
Hello,
I am not exactly sure that this is the correct location for the thread, if not, please move it to where you seem fit.

I am trying to create a simple HTML docker container with a reverse proxy, I am following the guide here in for the Apache configurations:

-> https://support.cpanel.net/hc/en-us/articles/360052925073

These are the configuration files:

SSL:

PrivateBin

Non-SSL:


It is very simple as you might see, however, the issue that I am having is that when I try to visit the website/domain through the Docker container with SSL, it does not work, and I do not understand the reason why as I am setting everything as per the guides found in cPanel docs, for reference I am attaching my Dockerfile as well as my docker-compose.yml file:

DockerFile:

Docker-compose:
PrivateBin

When I visit the webpage with HTTPS, it is like there is no SSL installed, and instead, the following page is being opened:
-> Screenshot

However, when I visit it without https the page opens normally:
-> Screenshot

There are no errors whatsoever that would suggest the key and crt copied from the Docker container to the specified folder are incorrect or in any way do not match:

-> Screenshot

Therefore I am note certain why the server is not detecting the SSL certificates and what may be the culprit for this. Has anyone tried to achieve this and if yes, how?

Thanks.
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
  • Like
Reactions: tanchev

tanchev

Registered
Aug 2, 2023
3
1
3
StackOverflow
cPanel Access Level
Root Administrator
Hey there! Currently we don't support Docker on the cPanel side of things. While it may work fine, we don't offer any tools that integrate that with cPanel or WHM: https://support.cpanel.net/hc/en-us/articles/360062418794-Can-I-run-docker-on-a-cPanel-server-

I'll leave this marked as new for a bit to see if other users can share their thoughts.
Yes, I am aware, I was only hoping that some of the sys admins that are going around the forum will see the topic and solve the issue instead of me having to debug this for many hours, otherwise, I would need to try to figure out this on my end, probably I am not doing something correctly, however, I am not sure what exactly :)
 
  • Like
Reactions: cPRex