Hi.
I have a domain that is working fine with LE on the principal machine and now I have a second machine running a second service. Both servers have Apache and run web services. For this reason I have to access to the second server specifing a port different to 80 or 443 and on the principal server I have virtual hosts and a HTTP-301 redirect with index.php to access to the second server (same subdomain but specifing port) and I can create a LE certificate por principal server but not for the second one.
Then, is it possible to create a LE certificate for this second server? I now that I can use DNS challenge and cert only and putting it manually on the server but doing that I cannot renew automatically .
To clarify my problem:
subdomain1.domain.com:80 -> virtual host 1 server 1
subdomain1.domain.con:443 -> virtual host 1 server 1, LE ok
subdomain2.domain.com:80 -> virtual host 2 server 1
subdomain2.domain.con:443 -> virtual host 2 server 1, LE ok
=== Here is my problem ===
subdomain3.domain.com:80 -> virtual host 3 server 1, HTTP-301 redirected to subdomain3.domain.com:9978 (server 2) by index.php
subdomain3.domain.com:9978 -> virtual host 1 server 2, using port 80. I can access writing on browser subdomain3.domain.com or subdomain3.domain.com:9978
Then, I can redirect another por for HTTPS to server 2, how can I specify that my HTTPS port is not 443 or how can I tell to certbot than the 301 redirect is “legal”?
Thanks a lot.