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