[enh] Redirect most of 404 to maindomain.tld/yunohost/sso

This commit is contained in:
opi 2016-03-15 00:07:36 +01:00
parent 749ff71590
commit f3768217d1

View file

@ -29,11 +29,14 @@ server {
return 302 https://$http_host/yunohost/admin;
}
# Block crawlers bot
location /yunohost {
if ($http_user_agent ~ (crawl|Googlebot|Slurp|spider|bingbot|tracker|click|parser|spider|facebookexternalhit) ) {
return 403;
}
# Block crawlers bot
if ($http_user_agent ~ (crawl|Googlebot|Slurp|spider|bingbot|tracker|click|parser|spider|facebookexternalhit) ) {
return 403;
}
# Redirect most of 404 to maindomain.tld/yunohost/sso
access_by_lua_file /usr/share/ssowat/access.lua;
}
include conf.d/yunohost_admin.conf.inc;