+ latest extensions - deployed nginx, apache, php 74 & 81, nvm, automatic databases import and phpmyadmin with nginx basic auth
+ dhcp dnsmasq server playbook for create inner server network #861m7vaer Шаблон операционной системы на Debian 10
This commit is contained in:
20
playbooks/debops/files/etc/nginx/includes.d/www.conf
Normal file
20
playbooks/debops/files/etc/nginx/includes.d/www.conf
Normal file
@ -0,0 +1,20 @@
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user