Hi guys,
got my first MT router few weeks ago, among other things I’m trying to “reverse proxy” the ROS WebUI via an Apache server running inside my LAN in order to keep standard HTTP/S ports free for NAT, have a neat public URL, manage TLS certificates with ease.
Using simple standard config…
<VirtualHost *:80>
ServerName ***
RedirectMatch permanent ^(.*)$ https://***$1
ErrorLog ${APACHE_LOG_DIR}/router_error.log
CustomLog ${APACHE_LOG_DIR}/router_access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerName ***
ProxyRequests off
ProxyPreserveHost On
ProxyPass / http://192.168.2.1:8080/
ProxyPassReverse / http://192.168.2.1:8080/
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/***/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/***/privkey.pem
SSLCACertificateFile /etc/letsencrypt/live/***/chain.pem
ErrorLog ${APACHE_LOG_DIR}/router_error.log
CustomLog ${APACHE_LOG_DIR}/router_access.log combined
</VirtualHost>
…results in a spoiled behavior as you can see from following animated GIF (click on thumbnail):

Via direct LAN connection (http://:) runs smoothly, of course.
Well I ain’t no Apache nerd (you don’t say!) but I’m quite sure config needs improvements…maybe rewrite rules? Or some code lines about web socket?
Any idea? Thanks in advance!