Hello!
This is my basic network map.
I setup one VM only for apache2 proxy, but cannot get it work with my two NC instancesā¦ I setup one simple webpage on top on my proxy (192.168.1.200) and I can access it thru https (https://personal.freemyip.com). Second, I try to create one virtualhost linked to my nc1 (192.168.1.201):
<VirtualHost *:*>
ServerName nc1.personal.freemyip.com
ProxyPreserveHost On
ProxyPass / http://192.168.1.201/
ProxyPassReverse / http://192.168.1.201/
</VirtualHost>
After that, Iāve create second virtualhost for https for the same backend (192.168.1.201)
<VirtualHost *:443>
SSLEngine On
# Set the path to SSL certificate
# Usage: SSLCertificateFile /path/to/cert.pem
Protocols h2 http/1.1
ServerName nc1.personal.freemyip.com
SSLCertificateFile /etc/letsencrypt/live/personal.freemyip.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/personal.freemyip.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/personal.freemyip.com/chain.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLUseStapling on
Header always set Strict-Transport-Security "max-age=31536000"
ProxyPass / https://192.168.1.201/
ProxyPassReverse / https://192.168.1.201/
</VirtualHost>
Same story for the other backend (192.168.1.2)
When I try to open https://nc1.personal.freemyip.com Iāve got Internal error 500.
When http request isworking fine.
Can I take your advice, please?
Best regards!