Why are different domains open the same website?

Hello! Do not prompt, why I have open 2 identical website addresses сайт1 and сайт2
File dfkids.EN.conf :
<virtualhost *:80>

 ServerName dfkids.redcap52.ru
 ServerAlias *.dfkids.redcap52.ru
 ServerAdmin webmaster@localhost
 DocumentRoot /var/www/dfkids
 ErrorLog ${APACHE_LOG_DIR}/error.log
 CustomLog ${APACHE_LOG_DIR}/access.log combined
</virtualhost>

The file 000-default.conf :
<virtualhost *:80>
 # The ServerName directive sets the request scheme, hostname and port that
 # the server uses to identify itself. This is used when creating
 # redirection URLs. In the context of virtual hosts, the ServerName
 # specifies what hostname must appear in the request''s Host: header to
 # match this virtual host. For the default virtual host (this file) this
 # value is not decisive as it is used as a last resort host regardless.
 # However, you must set it for any further virtual host explicitly.
 #ServerName www.example.com

 ServerAdmin webmaster@localhost
 DocumentRoot /var/www/html

 # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
 # error, crit, alert, emerg.
 # It is also possible to configure the loglevel for particular
 # modules, e.g.
 #LogLevel info ssl:warn

 ErrorLog ${APACHE_LOG_DIR}/error.log
 CustomLog ${APACHE_LOG_DIR}/access.log combined

 # For most configuration files from conf-available/, which are
 # enabled or disabled at a global level, it is possible to
 # include a line for only one particular virtual host. For example the
 # the following line enables the CGI configuration for this host only
 # after it has been globally disabled with "a2disconf".
 #Include conf-available/serve-cgi-bin.conf
</virtualhost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
July 4th 19 at 23:31
1 answer
July 4th 19 at 23:33
From my side they are different on сайт1 plug Apache. Maybe the DNS cache hasn't refreshed since the change IP on domain. Try using Google DNS (8.8.8.8)
And also the first plug Apache - august.Altenwerth83 commented on July 4th 19 at 23:36
Try to check now - august.Altenwerth83 commented on July 4th 19 at 23:39
the second shows that I have a website "webstudy redcap152", on the ground only a stub - turner.Beahan commented on July 4th 19 at 23:42
Try to check now. You can not be on the second redcap152 because I did all demolished and re-installed the server. Try to clear your browser cache. - august.Altenwerth83 commented on July 4th 19 at 23:45
Magic. The site is alive and responds to button presses. Now with the phone, but have tried different browsers and all the same - turner.Beahan commented on July 4th 19 at 23:48
So. From home both look the same. New config was enabled via sudo a2ensite virtual_host_file_name? - turner.Beahan commented on July 4th 19 at 23:51
Yes. - august.Altenwerth83 commented on July 4th 19 at 23:54
b279111412fd47669838a1b199bef8c4.png - august.Altenwerth83 commented on July 4th 19 at 23:57
OK, what if you disable dfkids.conf and instead add to the default.conf the line:

ServerName dfkids.redcap52.ru
DocumentRoot /var/www/dfkids
- turner.Beahan commented on July 5th 19 at 00:00
And how to disable dfkids.conf ? just remove? - august.Altenwerth83 commented on July 5th 19 at 00:03
And I don't see it in /etc/apache2/ default file.conf - august.Altenwerth83 commented on July 5th 19 at 00:06
there is 000-default.conf - august.Altenwerth83 commented on July 5th 19 at 00:09
I'm talking about the 000-default that is now included. there create config subdomain. to disable via the command a2dissite, after any operation, be sure to do sudo service apache2 reload (by the way, maybe that was the original problem) - turner.Beahan commented on July 5th 19 at 00:12

Find more questions by tags Apache