nginx corrections

This commit is contained in:
Jeremy MANSON 2016-03-07 15:10:52 +01:00
parent a3162e769e
commit ed485b40f3

View File

@ -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/";
}