fix call to AliasDomain var

This commit is contained in:
Matthew Saunders Brown 2024-11-27 09:55:02 -08:00
parent c741e26dab
commit c329b13c29

View File

@ -31,7 +31,7 @@
ServerName $vhost
ServerAlias www.$vhost
<IfDefine AliasDomain>
ServerAlias $vhost.$AliasDomain
ServerAlias $vhost.${AliasDomain}
</IfDefine>
DocumentRoot /srv/www/$vhost/html
ScriptAlias /cgi-wrap/ "/usr/local/lib/cgi-wrap/$vhost/"
@ -48,7 +48,7 @@
<VirtualHost *:80>
ServerName $subdomain.$vhost
<IfDefine AliasDomain>
ServerAlias $subdomain.$vhost.$AliasDomain
ServerAlias $subdomain.$vhost.${AliasDomain}
</IfDefine>
DocumentRoot /srv/www/$vhost/html/$subdomain
<FilesMatch ".+\.ph(ar|p|tml)$">
@ -57,13 +57,13 @@
</VirtualHost>
</Macro>
# VHostHTTPS - HTTPS on Port 443. Inludes Port 80 and ServerAliases for $AliasDomain subdomain
# VHostHTTPS - HTTPS on Port 443. Inludes Port 80 and ServerAliases for ${AliasDomain} subdomain
<Macro VHostHTTPS $vhost $username $phpVersion>
<VirtualHost *:80>
ServerName $vhost
ServerAlias www.$vhost
<IfDefine AliasDomain>
ServerAlias $vhost.$AliasDomain
ServerAlias $vhost.${AliasDomain}
</IfDefine>
DocumentRoot /srv/www/$vhost/html
ScriptAlias /cgi-wrap/ "/usr/local/lib/cgi-wrap/$vhost/"
@ -85,7 +85,7 @@
ServerName $vhost
ServerAlias www.$vhost
<IfDefine AliasDomain>
ServerAlias $vhost.$AliasDomain
ServerAlias $vhost.${AliasDomain}
</IfDefine>
DocumentRoot /srv/www/$vhost/html
ScriptAlias /cgi-wrap/ "/usr/local/lib/cgi-wrap/$vhost/"
@ -113,12 +113,12 @@
</VirtualHost>
</Macro>
# VHostSubdomainHTTPS - HTTPS on Port 443. Inludes Port 80 and ServerAliases for $AliasDomain subdomain
# VHostSubdomainHTTPS - HTTPS on Port 443. Inludes Port 80 and ServerAliases for ${AliasDomain} subdomain
<Macro VHostSubdomainHTTPS $vhost $username $phpVersion $subdomain>
<VirtualHost *:80>
ServerName $subdomain.$vhost
<IfDefine AliasDomain>
ServerAlias $subdomain.$vhost.$AliasDomain
ServerAlias $subdomain.$vhost.${AliasDomain}
</IfDefine>
DocumentRoot /srv/www/$vhost/html/$subdomain
<IfDefine ForceHTTPS>
@ -135,7 +135,7 @@
<VirtualHost *:443>
ServerName $subdomain.$vhost
<IfDefine AliasDomain>
ServerAlias $subdomain.$vhost.$AliasDomain
ServerAlias $subdomain.$vhost.${AliasDomain}
</IfDefine>
DocumentRoot /srv/www/$vhost/html/$subdomain
<FilesMatch ".+\.ph(ar|p|tml)$">
@ -152,7 +152,7 @@
ServerName $vhost
ServerAlias www.$vhost
<IfDefine AliasDomain>
ServerAlias $vhost.$AliasDomain
ServerAlias $vhost.${AliasDomain}
</IfDefine>
DocumentRoot /srv/www/$vhost/html
ScriptAlias /cgi-wrap/ "/usr/local/lib/cgi-wrap/$vhost/"
@ -167,7 +167,7 @@
ServerName $vhost
ServerAlias www.$vhost
<IfDefine AliasDomain>
ServerAlias $vhost.$AliasDomain
ServerAlias $vhost.${AliasDomain}
</IfDefine>
RequestHeader set X-Forwarded-Proto https
ProxyPreserveHost On
@ -183,7 +183,7 @@
<VirtualHost *:80>
ServerName $subdomain.$vhost
<IfDefine AliasDomain>
ServerAlias $subdomain.$vhost.$AliasDomain
ServerAlias $subdomain.$vhost.${AliasDomain}
</IfDefine>
DocumentRoot /srv/www/$vhost/html/$subdomain
<FilesMatch ".+\.ph(ar|p|tml)$">
@ -193,7 +193,7 @@
<VirtualHost *:443>
ServerName $subdomain.$vhost
<IfDefine AliasDomain>
ServerAlias $subdomain.$vhost.$AliasDomain
ServerAlias $subdomain.$vhost.${AliasDomain}
</IfDefine>
RequestHeader set X-Forwarded-Proto https
ProxyPreserveHost On
@ -247,7 +247,7 @@
ServerName $vhost
ServerAlias www.$vhost
<IfDefine AliasDomain>
ServerAlias $vhost.$AliasDomain
ServerAlias $vhost.${AliasDomain}
</IfDefine>
<Location "/">
<If "%{REQUEST_URI} !~ m#^/.well-known/acme-challenge/#">
@ -262,7 +262,7 @@
ServerName $vhost
ServerAlias www.$vhost
<IfDefine AliasDomain>
ServerAlias $vhost.$AliasDomain
ServerAlias $vhost.${AliasDomain}
</IfDefine>
<Location "/">
<If "%{REQUEST_URI} !~ m#^/.well-known/acme-challenge/#">
@ -274,7 +274,7 @@
ServerName $vhost
ServerAlias www.$vhost
<IfDefine AliasDomain>
ServerAlias $vhost.$AliasDomain
ServerAlias $vhost.${AliasDomain}
</IfDefine>
<Location "/">
<If "%{REQUEST_URI} !~ m#^/.well-known/acme-challenge/#">
@ -291,7 +291,7 @@
ServerName $alias
ServerAlias www.$alias
<IfDefine AliasDomain>
ServerAlias $alias.$AliasDomain
ServerAlias $alias.${AliasDomain}
</IfDefine>
DocumentRoot /srv/www/$vhost/html
ScriptAlias /cgi-wrap/ "/usr/local/lib/cgi-wrap/$vhost/"
@ -309,7 +309,7 @@
ServerName $alias
ServerAlias www.$alias
<IfDefine AliasDomain>
ServerAlias $alias.$AliasDomain
ServerAlias $alias.${AliasDomain}
</IfDefine>
DocumentRoot /srv/www/$vhost/html
ScriptAlias /cgi-wrap/ "/usr/local/lib/cgi-wrap/$vhost/"
@ -331,7 +331,7 @@
ServerName $alias
ServerAlias www.$alias
<IfDefine AliasDomain>
ServerAlias $alias.$AliasDomain
ServerAlias $alias.${AliasDomain}
</IfDefine>
DocumentRoot /srv/www/$vhost/html
ScriptAlias /cgi-wrap/ "/usr/local/lib/cgi-wrap/$vhost/"