ServerName subdomen2.mydomain.ru ServerAlias subdomen2.mydomain.ru DocumentRoot /var/www/subdomen2/ RewriteEngine On RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L] ErrorLog /var/log/apache2-subdomen2/error.log CustomLog /var/log/apache2-subdomen2/access.log combined