mirror of
https://github.com/ZeJMaN/shinken_ynh.git
synced 2025-06-07 17:35:30 +02:00
nginx corrections
This commit is contained in:
parent
a3162e769e
commit
ed485b40f3
@ -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/";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user