I haven't used cPanel in a LONG time. The cPanel documentation I've been reading on the "WHM" variant is not matching up with the WHM server I am trying to get working.
Our JS dev has created a few Docker containers on the server, each with their own ports they are listening on. I need to connect them to the server so WordPress can talk to them.
I tried setting up the subdomains through the documentation, but WHM had nothing at all listed in the "subdomain" section. I found the option in the DNS section and there I created two CNAME's (api-docs.domain.tld and docs.domain.tld). I'm not sure how I go about adding these subdomains to the SSL cert (I'm used to using Let's Encrypt).
Next, he requested "proxying incoming requests from Apache HTTPS port 443 to respective application parts based either on subdomain mapping or on path mapping".
I added this code into the post_virtualhost_2 section through the WHM panel:
However, nothing loads.
Any help or guidance in the right direction would be greatly appreciated.
Our JS dev has created a few Docker containers on the server, each with their own ports they are listening on. I need to connect them to the server so WordPress can talk to them.
I tried setting up the subdomains through the documentation, but WHM had nothing at all listed in the "subdomain" section. I found the option in the DNS section and there I created two CNAME's (api-docs.domain.tld and docs.domain.tld). I'm not sure how I go about adding these subdomains to the SSL cert (I'm used to using Let's Encrypt).
Next, he requested "proxying incoming requests from Apache HTTPS port 443 to respective application parts based either on subdomain mapping or on path mapping".
I added this code into the post_virtualhost_2 section through the WHM panel:
Code:
<VirtualHost IP#:443>
ServerName docs.domain.tld
ProxyPreserveHost On
ProxyPass "/" "http://127.0.0.1:5000/"
ProxyPassReverse "/" "http://127.0.0.1:5000/"
</VirtualHost>
<VirtualHost IP#:443>
ServerName api-docs.domain.tld
ProxyPreserveHost On
ProxyPass "/api/graphql" "http://127.0.0.1:8080/api/graphql"
ProxyPassReverse "/api/graphql" ""http://127.0.0.1:8080/api/graphql"
</VirtualHost>
Any help or guidance in the right direction would be greatly appreciated.
Last edited by a moderator: