Browse Source

Добавить 'www.conf'

master
gitea 3 years ago
parent
commit
7c80f38852
  1. 14
      www.conf

14
www.conf

@ -0,0 +1,14 @@
error_page 418 = @www;
set $www "0";
if ( $http_host ~* "^www\.") {
set $www "${www}1";
}
if ( $http_host ~* "^m\.") {
set $www "${www}2";
}
if ( $www = "0" ) {
return 418;
}
location @www {
rewrite ^ $scheme://www.$host$request_uri? permanent;
}
Loading…
Cancel
Save