diff --git a/httpd-edge-with-static/dispatcher.conf b/httpd-edge-with-static/dispatcher.conf index 5243481..219272a 100644 --- a/httpd-edge-with-static/dispatcher.conf +++ b/httpd-edge-with-static/dispatcher.conf @@ -68,6 +68,8 @@ ProxyPassReverse ^/login/oauth2/(.+) http://dukecon-feedback:8090/login/oauth2/$ ProxyPassMatch ^/(\w+/\w+)/admin/(.*) http://dukecon-admin-client:80/$2 ProxyPassReverse ^/(\w+/\w+)/admin/(.*) http://dukecon-admin-client:80/$2 +# Use static generated contents +# The '!' matchers are used to prohibit recursing into sub directories (which should not even exist anyways) AliasMatch "^/(\w+)/(\d+)/rest/(image-resources|init).json" /usr/local/apache2/htdocs/rest/$1/$2/rest/$3.json ProxyPassMatch "^/(\w+)/(\d+)/rest/(image-resources|init).json" ! AliasMatch "^/(\w+)/(\d+)/rest/conferences/(\w+)/(.+)" /usr/local/apache2/htdocs/rest/$1/$2/rest/conferences/$3/$4