Merge pull request #3540 from dokku/3529-better-default-vhost
Do not append the global domain for matching subdomains
This commit is contained in:
4 files changed
+24
-16
No files matched your search
@@ -257,7 +257,7 @@ get_default_vhosts() {
|
||||
local SUBDOMAIN=${APP/%\.${VHOST}/}
|
||||
local hostname=$(: | plugn trigger nginx-hostname "$APP" "$SUBDOMAIN" "$VHOST")
|
||||
if [[ -z $hostname ]]; then
|
||||
if [[ "$APP" == *.* ]] && [[ "$SUBDOMAIN" == "$APP" ]]; then
|
||||
if [[ "$APP" == *.* ]]; then
|
||||
local hostname="${APP/\//-}"
|
||||
else
|
||||
local hostname="${APP/\//-}.$VHOST"
|
||||
|
||||
Reference in new issue
Block a user