From ed485b40f3cfd5d63ee02b3d70abbf9181d156d3 Mon Sep 17 00:00:00 2001 From: Jeremy MANSON Date: Mon, 7 Mar 2016 15:10:52 +0100 Subject: [PATCH] nginx corrections --- conf/nginx.conf | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 7044194..02b8cf0 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,10 +1,11 @@ - + location /static/(.*\/)? { + try_files htdocs/$uri plugins/$1/htdocs/$uri @webui; } location @webui { root /var/lib/shinken/modules/webui2/; } - location ~* ^/(all|forms|inner|static|dashboard|availability|logs|widget|cv|user|modal|gotfirstdata|host/cv)$ + location ~* ^/(all|forms|inner|static|dashboard|availability|logs|widget|cv|user|modal|gotfirstdata|host/cv) { return 301 /shinken$request_uri; } @@ -27,5 +28,7 @@ sub_filter_once off; # All patterns that should be rewritten - sub_filter "href=\"/" "href=\"/shinken/"; + # sub_filter "href=\"/" "href=\"/shinken/"; + sub_filter "=\"/static" "=\"/shinken/static"; + # sub_filter "=\"/" "=\"/shinken/"; }