The following lines were added into /etc/httpd/conf/httpd.conf
#10.0.0.100 - 10.0.0.200 - default catch all
<VirtualHost *:80>
ServerAdmin root@localhost
DocumentRoot /var/www/html
ErrorLog /var/log/httpd/10.0.0.100-200-errorr.log
CustomLog /var/log/httpd/10.0.0.100-200-access.log common
</VirtualHost>
#subdomain1.domain.name
<VirtualHost *:80>
ServerAdmin root@localhost
DocumentRoot /var/www/subdomain1.domain.name
ServerName subdomain1.domain.name
ErrorLog /var/log/httpd/subdomain1.domain.name-errorr.log
CustomLog /var/log/httpd/subdomain1.domain.name-access.log common
</VirtualHost>
#www.domain.name
<VirtualHost *:80>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://www.domain.name$1 [R=301,L]
ServerName www.domain.name
ServerAlias domain.name
DocumentRoot /var/www/www.domain.name
ErrorLog /var/log/httpd/www.domain.name-error.log
CustomLog /var/log/httpd/www.domain.name-access.log common
</VirtualHost>
#mail.domain.name
<VirtualHost *:80>
ServerAdmin root@localhost
DocumentRoot /var/www/roundcubemail
ServerName mail.domain.name
ErrorLog /var/log/httpd/mail.domain.name-errorr.log
CustomLog /var/log/httpd/mail.domain.name-access.log common
</VirtualHost>
1) http : 10.0.0.100 - 10.0.0.200 - works ok
2) http : subdomain1.domain.name - works ok
3) http : domain.name - works ok
4) http : mail.domain.name - does not work, it redirects me to SSL version of /var/www/html
I`ve rolled back all files from /etc/httpd/conf.d/ to default configuration, doubled checked DNS zones to see if I missed anything and nothing.