mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Redirect most of 404 to maindomain.tld/yunohost/sso
This commit is contained in:
parent
749ff71590
commit
f3768217d1
1 changed files with 7 additions and 4 deletions
|
@ -29,11 +29,14 @@ server {
|
||||||
return 302 https://$http_host/yunohost/admin;
|
return 302 https://$http_host/yunohost/admin;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Block crawlers bot
|
|
||||||
location /yunohost {
|
location /yunohost {
|
||||||
if ($http_user_agent ~ (crawl|Googlebot|Slurp|spider|bingbot|tracker|click|parser|spider|facebookexternalhit) ) {
|
# Block crawlers bot
|
||||||
return 403;
|
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;
|
include conf.d/yunohost_admin.conf.inc;
|
||||||
|
|
Loading…
Add table
Reference in a new issue