From 2400bc4b6079b09d8a9c0334b98a77e90de470a8 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Tue, 2 Jan 2018 11:59:49 +0100 Subject: --route => --route-if --- bin/taler-deployment-landing | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/taler-deployment-landing b/bin/taler-deployment-landing index 7a5902f..1d9998f 100755 --- a/bin/taler-deployment-landing +++ b/bin/taler-deployment-landing @@ -17,7 +17,7 @@ exec uwsgi \ --mimefile /etc/mime.types \ --socket $HOME/sockets/landing.uwsgi \ --chmod-socket=660 \ - --route "^/?$ redirect:index.html" \ - --route "^/(.+) addvar:FILE=$HOME/landing/demo/\$1" \ - --route-if "exists:\${FILE} static:\${FILE}" \ - --route "^/(.+) break:404 not found" + --route-if "regexp:${PATH_INFO};^/?$ redirect:index.html" \ + --route-if "regexp:${PATH_INFO};^/(.+) addvar:FILE=$HOME/landing/demo/\$1" \ + --route-if "exists:${PATH_INFO};\${FILE} static:\${FILE}" \ + --route-if "regexp:${PATH_INFO};^/(.+) break:404 not found" -- cgit v1.2.3