From 8096f9161a656fd3d7db975f245be9e6a88c4f1e Mon Sep 17 00:00:00 2001 From: Gerd Aschemann Date: Sat, 22 Feb 2020 12:10:53 +0100 Subject: [PATCH] Comment on static generated content cf. dukecon/dukecon_server#102 --- httpd-edge-with-static/dispatcher.conf | 2 ++ 1 file changed, 2 insertions(+) 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