From 967ec8c209eb118685076468ce7fef59e0452881 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Mon, 10 Mar 2014 23:35:53 +0100 Subject: folder for static content --- blob/nginx_rewrite_rules | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'blob/nginx_rewrite_rules') diff --git a/blob/nginx_rewrite_rules b/blob/nginx_rewrite_rules index 662362c..0b925f3 100644 --- a/blob/nginx_rewrite_rules +++ b/blob/nginx_rewrite_rules @@ -1,11 +1,12 @@ location /robots.txt {} #stop rewriting the robots.txt location /favicon.ico {} -location ~* ^/.+[^/].+\.css {} -location ~* ^/.+[^/].+\.png {} +location /static {} +#location ~* ^/.+[^/].+\.css {} +#location ~* ^/.+[^/].+\.png {} -location ~* ^/?login(\?[0-9a-zA-Z]+(=[0-9a-zA-Z]*)?)?$ { - rewrite ^/?login(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? /index.php?task=login&arguments=$1 last; +location ~* ^/?login(/?[a-z0-9]+=[a-z0-9]+(&[a-z0-9]+=[a-z0-9]+)?)?$ { + rewrite ^/?login([?/]?.*) /index.php?task=login&arguments=$1 last; } location ~* ^/?logout(/?\?[0-9a-zA-Z]+(=[0-9a-zA-Z]*)?)?$ { -- cgit v1.2.3