diff options
author | Christian Pointner <equinox@spreadspace.org> | 2016-08-09 09:16:49 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2016-08-09 09:16:49 +0200 |
commit | 59e3c9a1f077d7b568a1f9698ce601d6f527ccfd (patch) | |
tree | 5575018653d3fc1a61b8a2e3810211e61f62b32f /README | |
parent | c41cad8de5d421cb813e031a301b8121000ed90a (diff) |
added nginx sample config
Diffstat (limited to 'README')
-rw-r--r-- | README | 31 |
1 files changed, 28 insertions, 3 deletions
@@ -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; + } |