remove static route redirects / bump static to top level (#1299)

* add another favicon rule

* catch only top-level dataset names

* add config flag to disable redirects

* remove static redirect, point all links to top-level /static

* remove extraneous argument

* remove httpd redirect
This commit is contained in:
Bruce Martin
2020-03-26 10:45:10 -07:00
committed by GitHub
parent 40c2e4c164
commit 57938b487b
5 changed files with 56 additions and 57 deletions
@@ -1,11 +0,0 @@
# Configure URL rewriting from /<dataset>/static/* to /static/*
files:
"/etc/httpd/conf.d/static_rewrite.conf":
mode: "000644"
owner: root
group: root
content: |
RewriteEngine On
RewriteRule "^(.*)/static/(.*)" "/static/$2" [PT]
RewriteRule "^/favicon.png" "/static/img/favicon.png" [PT]