• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Forwarded to devs wildcard subdomain

Martin_Sauer

Regular Pleskian
User name: Martin_Sauer

TITLE

wildcard subdomain

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

CentOS 7.5, Obsidian 18.0.26, web host edition, apache + nginx (in default config without custom folder according last update)

PROBLEM DESCRIPTION

The behaviour as outlined in
does no longer work.

When creating the wildcard subdomain, the resulting wildcard domains are not added to the server directive in nginx.conf and also not in httpd.conf resp. the related vhost files. By adding the wildcard subdomains by hand it works again.

STEPS TO REPRODUCE

As outlined in the article

By following those steps, the wildcard subdomain is not properly used as expected.

ACTUAL RESULT

nothing happens, nada, zero, null, muerto

EXPECTED RESULT

All subdomains without explicit subdomain settings should be redirected to the original domain, where the original domain website handles the domain names.

ANY ADDITIONAL INFORMATION



YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Help with sorting out
 
From developer:

Linked article Adding Wildcard Subdomains (Linux)
work as planned for:
CentOS Linux release 7.7.1908 (Core) and Ubuntu 18.04.4 LTS
for dev and prod environments.

You may check apache config after add wildcard subdomain:

Code:
# cat /etc/httpd/conf.d/zz010_psa_httpd.conf | grep wildcards
IncludeOptional '/etc/httpd/conf/plesk.conf.d/wildcards/*.conf'
# ls -la /etc/httpd/conf/plesk.conf.d/wildcards/
total 4
drwxr-xr-x. 2 root root   51 Apr 27 09:08 .
drwxr-xr-x. 7 root root 4096 Apr 24 18:45 ..
lrwxrwxrwx. 1 root root   74 Apr 27 09:08 <YOUR_DOMAIN>.conf -> /var/www/vhosts/system/_.<YOUR_DOMAIN>/conf/httpd.conf
 
cat /var/www/vhosts/system/_.<YOUR_DOMAIN>/conf/httpd.conf | egrep \\*.<YOU_DOMAIN> -A2
                ServerAlias "*.<YOU_DOMAIN>"
                UseCanonicalName Off
 
--
        ServerAlias "*.<YOU_DOMAIN>"
        UseCanonicalName Off

if the problem will remain after that I recommend contact Plesk support.
 
Same report here Forwarded to devs - Wildcard Subdomain not working
For me that file is empty. Its have only comments.

cat /var/www/vhosts/system/_.<YOUR_DOMAIN>/conf/httpd.conf | egrep \\*.<YOU_DOMAIN> -A2
result: no output

/var/www/vhosts/system/_.<YOUR_DOMAIN>/conf/httpd.conf
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
#IF YOU REQUIRE TO APPLY CUSTOM MODIFICATIONS, PERFORM THEM IN THE FOLLOWING FILES:
#/var/www/vhosts/system/_.DOMAIN.com/conf/vhost.conf
#/var/www/vhosts/system/_.DOMAIN.com/conf/vhost_ssl.conf

CentOS Linux 7.7.1908 (Core) with Plesk Obsidian Version 18.0.26
 
Back
Top