I have a Domino server inside office firewall, so port 443 is directed to it. I would like to server other https sites.
I am testing inside firewall for now. I configured one Fedora 26 machine to reverse proxy for Nextcloud served from a second machine. For this I use,
ServerAdmin root@company.com DocumentRoot /var/www/html/ ErrorLog /var/log/httpd/error_log CustomLog /var/log/httpd/access_log combined LogLevel debug SSLEngine On # Set the path to SSL certificate # Usage: SSLCertificateFile /path/to/cert.pem SSLCertificateFile /etc/pki/tls/certs/company.crt SSLCertificateKeyFile /etc/pki/tls/private/company.key ProxyPreserveHost On ProxyPass / http://nextcloud.company.com/ ProxyPassReverse / http://nextcloud.company.com/ ServerName gandalf.company.com:443Using https://gandalf.company.com/nextcloud https://gandalf.company.com/nextcloud I can get the Nextcloud on second machine. Second machine is called Nextcloud.
I followed instructions from here,
Solved: reverse proxy for domino with ssl configuration | Experts Exchange https://www.experts-exchange.com/questions/24653172/reverse-proxy-for-domino-with-ssl-configuration.html
My configuration is,
ServerName webmail.company.com
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://webmail.company.com/
ProxyPassReverse / http//webmail.company.com/
LogLevel debug
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/company.crt
SSLCertificateKeyFile /etc/pki/tls/private/company.key
DocumentRoot /var/www/html
Errorlog /var/log/domino-error.log
CustomLog /var/log/domino-access_log combined
SSLProxyEngine on
SetOutputFilter proxy-html
#ProxyHTMLURLMap / /
RequestHeader unset Accept-Encoding
The machine ‘office’ is the same machine ‘gandalf’. Normally to get to email, we use,
https://webmail.company.com https://webmail.company.com
This gives the login screen which redirects to correct users email database.
Now I use https://office.company.com https://office.company.com hoping to get to https://webmail.company.com https://webmail.company.com. I did remove the Nextcloud configuration and restarted httpd, yet this url gets me to the directory location showing Nextcloud directory (it does not open Nextcloud site).
Clearly I am missing something. Is anyone able to set me straight?
Thank you,
Durwin