summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2016-08-09 09:16:49 +0200
committerChristian Pointner <equinox@spreadspace.org>2016-08-09 09:16:49 +0200
commit59e3c9a1f077d7b568a1f9698ce601d6f527ccfd (patch)
tree5575018653d3fc1a61b8a2e3810211e61f62b32f
parentc41cad8de5d421cb813e031a301b8121000ed90a (diff)
added nginx sample config
-rw-r--r--README31
1 files 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;
+ }