okosgep.eu - Okosságok

ubuntu aldomain saját documnet root és ssl, https certbot

/etc/apache2/sites-available/aldomain.domain.hu.conf

<VirtualHost *:80>
   ServerName aldomain.domain.hu

   ServerAdmin webmaster@domain.hu
   DocumentRoot /var/www/aldomain.domain.hu

   <Directory /var/www/aldomain.domain.hu>
       Options Indexes FollowSymLinks
       AllowOverride All
       Require all granted
   </Directory>

   ErrorLog ${APACHE_LOG_DIR}/aldomain.domain.hu-error.log
   CustomLog ${APACHE_LOG_DIR}/aldomain.domain.hu-access.log combined
</VirtualHost>


sudo a2ensite aldomain.domain.hu.conf
sudo systemctl reload apache2

ha mér van certbot
sudo certbot --apache -d aldomain.domain.hu.con