Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Only display site if alias exits when using catch all dns

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
delebash
Posts: 22
Joined: Mon Aug 24, 2015 5:28 pm

Only display site if alias exits when using catch all dns
  • Quote

Post by delebash » Thu Jun 09, 2016 4:27 am

I have a catch all dns entry for my domain in Digital Oceans domain control. CNAME * mydomain.com
So if I type test.mydomain.com it points to the same server.

This works fine but I only want to display test.mydomain.com if test is listed as an alias of mydomain.com in vestacp.

In the website for mydomain.com I have an alias test.mydomain.com so if I type in test.mydomain.com the catch all dns forwards to my server and is then directed to mydomain.com via the test alias I setup in vestacp for that domain.

However if I do not have test setup as an alias for mydomain.com then the dns server will still forward but the site should not load returning failed to connect since test is not listed as an alias of mydomain.com.

Thanks.
Top

delebash
Posts: 22
Joined: Mon Aug 24, 2015 5:28 pm

Re: Only display site if alias exits when using catch all dns
  • Quote

Post by delebash » Tue Jun 21, 2016 4:17 am

You can do *.domain.com for your server_name. Lookup wildcards for nginx server_name
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password