• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.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