I would like to have subdomain sarkastrunova.clevermarketing.cz
If you add it to browser right now, it resolves to horsetransport.cz
which is another Virtual Host on the same webserver. And I am clueless why.
DNS records of A and AAAA of sarkastrunova.clevermarketing.cz
resolve to my server.
Config file for subdomain
# domain: sarkastrunova.clevermarketing.cz
# public: /var/www/html/sarkastrunova.clevermarketing.cz/public_html/
NameVirtualHost *:80
<VirtualHost *:80>
# Admin email, Server Name (domain name), and any aliases
ServerName sarkastrunova.clevermarketing.cz
ServerAlias clevermarketing.cz
ServerAdmin pavel@cleverstart.cz
# Index file and Document Root (where the public files are located)
DirectoryIndex index.html index.php
DocumentRoot /var/www/html/sarkastrunova.clevermarketing.cz/public_html
<Directory /var/www/html/sarkastrunova.clevermarketing.cz/public_html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -F info -finfo@clevermarketing.cz"
</Directory>
# Log file locations
LogLevel warn
ErrorLog /var/www/html/sarkastrunova.clevermarketing.cz/log/error.log
CustomLog /var/www/html/sarkastrunova.clevermarketing.cz/log/access.log combined
</VirtualHost>
Config file for domain to which it resolves now
# domain: horsetransport.cz
# public: /var/www/html/horsetransport.cz/public_html/
<VirtualHost *:80>
# Admin email, Server Name (domain name), and any aliases
ServerAdmin pavel@cleverstart.cz
ServerName horsetransport.cz
ServerAlias www.horsetransport.cz
# Index file and Document Root (where the public files are located)
DirectoryIndex index.html index.php
DocumentRoot /var/www/html/horsetransport.cz/public_html
<Directory /var/www/html/horsetransport.cz/public_html>
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -F info -finfo@horsetransport.cz"
AllowOverride All
</Directory>
# Log file locations
LogLevel warn
ErrorLog /var/www/html/horsetransport.cz/log/error.log
CustomLog /var/www/html/horsetransport.cz/log/access.log combined
</VirtualHost>
There must be some obvious error why the subdomain is not resolving. Any help is appreciated