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

VestaCP and non existent subdomains ?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
Spheerys
Posts: 225
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 7x
Web: apache + nginx
VestaCP and non existent subdomains ?
  • Quote

Post by Spheerys » Fri Jul 03, 2020 2:20 pm

Hi :)

There is something I don't understand with VestaCP and DNS

Generally, my domain name have a bind zone like this (just few lines of the whole bind zone) :

Code: Select all

* 600 IN A 92.xxx.yyy.zzz
@ 600 IN A 92.xxx.yyy.zzz
Thus, I get the possibility to join my server with those full qualified domain names :
  • domain.com
  • www.domain.com
  • ftp.domain.com
Maybe it's a bad practice, but for now, it's very easy to deploy quickly a dev.domain.com without changing DNS : if I'm going to https://dev.domain.com, the website is obviously there because it was created in VerstaCP

But there is a strange thing when you try to reach an non existent subdomain : you will get from webserver a SSL error and you even can force to accept the wrong SSL cert. In this case, you will reach another hosted website (the last one ? the first one ?).

What I want to get in this case, is a simple Error 404 message or similar, without the possibility to reach anything.


Do you know how can I do this ?

I'm asking because I'm thinking my configuration generate this issue about "Host header attack" viewtopic.php?f=10&t=20030

The point is I don't know how to solved it efficiently... and I'm pretty sure the is something to do with Apache/Nginx servers...
Thanks for your answers :)
Top


Post Reply
  • Print view
1 post • 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