Reverse proxy settings for Apache

General Discussion

Reverse proxy settings for Apache

Postby billfor » Thu Apr 06, 2017 8:45 pm

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]
#
#
billfor
Junior Nut
Junior Nut
 
Posts: 29
Joined: Wed Mar 01, 2017 4:32 pm

Return to General

Who is online

Users browsing this forum: Google [Bot] and 6 guests

cron