• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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