• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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