Skip to content

Instantly share code, notes, and snippets.

@fradaloisio
Created July 10, 2017 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fradaloisio/6d430b62fcf54fe0d5cc28c10f0e8d89 to your computer and use it in GitHub Desktop.
Save fradaloisio/6d430b62fcf54fe0d5cc28c10f0e8d89 to your computer and use it in GitHub Desktop.
## BOSUN
RewriteRule /alerting/static/js/bosun.js /var/www/html/my-static/js/bosun.js [L]
<Location /alerting>
AddOutputFilterByType SUBSTITUTE text/html text/plain text/xml text/css text/javascript application/javascript application/json
Substitute "s#href=\"/#href=\"/alerting/#ni"
Substitute "s#ng-href=\"/#ng-href=\"/alerting/#ni"
Substitute "s#src=\"/#src=\"/alerting/#ni"
Substitute "s#data-path=\"/#data-path=\"/alerting/#ni"
Substitute "s#MYHOST/#MYHOST/alerting/#ni"
</Location>
ProxyPass /alerting/static http://localhost:8070/static timeout=180
ProxyPassReverse /alerting/static http://localhost:8070/static timeout=180
ProxyPass /alerting/api http://localhost:8070/api timeout=180
ProxyPassReverse /alerting/api http://localhost:8070/api timeout=180
ProxyPass /alerting/partials http://localhost:8070/partials timeout=180
ProxyPassReverse /alerting/partials http://localhost:8070/partials timeout=180
ProxyPass /alerting http://localhost:8070 timeout=180
ProxyPassReverse /alerting http://localhost:8070 timeout=180
ProxyPass /api/ http://localhost:8070/api/ timeout=180
ProxyPassReverse /alerting/api/ http://localhost:8070/api/ timeout=180
ProxyPass /partials/ http://localhost:8070/partials/ timeout=180
ProxyPassReverse /partials/ http://localhost:8070/partials/ timeout=180
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment