mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 02:41:35 +01:00
Different RegEx for wildcard subdomain
This commit is contained in:
@@ -156,18 +156,14 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"archtika-wildcard" = {
|
"~^(?<subdomain>.+)\.demo\.archtika\.com$;" = {
|
||||||
serverName = "~^(?<subdomain>[^.]+)\\.demo\\.archtika\\.com$";
|
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations = {
|
locations = {
|
||||||
"/" = {
|
"/" = {
|
||||||
root = "/var/www/archtika-websites";
|
alias = "/var/www/archtika-websites/$subdomain/";
|
||||||
index = "index.html";
|
index = "index.html";
|
||||||
tryFiles = "$uri $uri/ $uri/index.html =404";
|
tryFiles = "$uri $uri/ $uri/index.html =404";
|
||||||
extraConfig = ''
|
|
||||||
alias /var/www/archtika-websites/$subdomain/;
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user