Hab es mit Apache gemacht.
<VirtualHost *:443> ServerName git.foo.com ErrorLog /var/log/apache2/git.error.log TransferLog /var/log/apache2/git.com.access.log SSLEngine On SSLProxyEngine On ProxyRequests Off ProxyPreserveHost On SSLProxyCheckPeerCN off SSLProxyCheckPeerExpire off SSLInsecureRenegotiation on SSLProxyVerify none SSLProxyCheckPeerName Off SSLVerifyClient none SSLCertificateFile /etc/certs/git.foo.com/fullchain2.pem SSLCertificateKeyFile /etc/certs/git.foo.com/privkey2.pem ProxyPass / https://192.168.3.230/ ProxyPassReverse / https://192.168.3.230/ <Location "/"> Require all granted </Location> </VirtualHost> <VirtualHost *:443> ServerName api.foo.com ErrorLog /var/log/apache2/api.error.log TransferLog /var/log/apache2/api.access.log SSLEngine On SSLProxyEngine On ProxyPreserveHost on ProxyRequests Off SSLProxyCheckPeerCN off SSLProxyCheckPeerExpire off SSLInsecureRenegotiation on SSLProxyVerify none SSLProxyCheckPeerName Off SSLVerifyClient none SSLCertificateFile /etc/certs/api.foo.com/fullchain5.pem SSLCertificateKeyFile /etc/certs/api.foo.com/privkey5.pem ProxyPass / https://192.168.3.230/ ProxyPassReverse / https://192.168.3.230/ <Location "/"> Require all granted </Location> </VirtualHost> <VirtualHost *:80> ServerName subapi.foo.com ProxyRequests Off ProxyPreserveHost On ProxyPass / https://192.168.3.27/ ProxyPassReverse / https://192.168.3.27/ <Location "/"> Require all granted </Location> </VirtualHost>