From 59e3c9a1f077d7b568a1f9698ce601d6f527ccfd Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 9 Aug 2016 09:16:49 +0200 Subject: added nginx sample config --- README | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/README b/README index 4d04bbb..5f3b8f3 100644 --- a/README +++ b/README @@ -39,6 +39,31 @@ Nginx If you want to use nginx: - ssi on; - - < more will follow > + root /var/www; + ssi on; + location ~ ^/$ { + set $SITE "index"; + set $LANG "de"; + rewrite .* /index.shtml last; + } + location ~ ^/([^/]*)\.html$ { + set $SITE $1; + set $LANG "de"; + rewrite .* /index.shtml last; + } + location ~ ^/(de|en|si)/?$ { + set $SITE "index"; + set $LANG $1; + rewrite .* /index.shtml last; + } + location ~ ^/(de|en|si)/([^/]*)\.html$ { + set $SITE $2; + set $LANG $1; + rewrite .* /index.shtml last; + } + location ~ ^/([vhrl])([0-9]+)$ { + set $LANG "de"; + set $CHAN $2; + set $POL $1; + rewrite .* /essid.shtml last; + } -- cgit v1.2.1