Fix servername regex
This commit is contained in:
parent
96aff33135
commit
41514c3660
|
@ -22,7 +22,7 @@ server {
|
||||||
listen [::]:80 default_server;
|
listen [::]:80 default_server;
|
||||||
|
|
||||||
# parse subdomain (a base32 encoded Skylink) into custom variable
|
# parse subdomain (a base32 encoded Skylink) into custom variable
|
||||||
server_name ~^([a-z0-9]{55}).*?;
|
server_name "~^([a-z0-9]{55})\..*$";
|
||||||
set $subdomain $1;
|
set $subdomain $1;
|
||||||
|
|
||||||
# ddos protection: closing slow connections
|
# ddos protection: closing slow connections
|
||||||
|
|
Reference in New Issue