Page 1 of 1

Reverse proxy settings for Apache

PostPosted: Thu Apr 06, 2017 8:45 pm
by billfor
I run Apache instead of nginx as my main web server, so if anyone needs settings this is what worked for me.
Enable mod proxy, proxy_http, and proxy_html. Change "alarmpi" to the name of your local server.
Code: Select all
#
#
ProxyPass  /socket.io http://alarmpi:5000/socket.io
ProxyPass  /log http://alarmpi:5000/log
ProxyPass  /static http://alarmpi:5000/static
ProxyPass  /settings http://alarmpi:5000/settings
<Location /alarmdecoder/>
        ProxyPass  http://alarmpi:5000/
        ProxyPassReverse  /
        ProxyHTMLEnable On
        ProxyHTMLURLMap http://alarmpi:5000/ /alarmdecoder/
#       ProxyHTMLURLMap / /alarmdecoder/
</Location>
#RewriteEngine on
#RewriteRule ^/alarmdecoder$ /alarmdecoder/ [R]
#
#