• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Wildcard, DNS and what to put in vhosts.conf

F

florian.emrich

Guest
I got a big problem: I just wanted to configure wildcardomains to my virtual sever, but somehow it didn't work.

So this ist, what i did:

1) In the DNS-Configuration of my provider I installed a wildcard-DNS to the IP of my server.

2) I put a vhosts.von in /srv/www/vhosts/my-domain.de/conf with this content:

<VirtualHost *:80>
ServerName www.my-domain.de
ServerAlias *.my-domain.de
</VirtualHost>

I run the following command on my server:

/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=my-domain.de

But nothing happened. When I surf to a domain like testing.my-domain.de, I just get to the mainsite of my server (so i have to say, that my-domain.de is not the primary domain in Plesk. So all subdomains *.my-domain.de seem to be routed to www.primarydomain.de, also located on my server.

So what do i have to do, that all subdomains *.my-domain.de are routed to www.my-domain.de?
 
Back
Top