File: //etc/apache2/sites-enabled/produselemnmasiv-le-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName produselemnmasiv.ro
ServerAlias www.produselemnmasiv.ro
CustomLog ${APACHE_LOG_DIR}/produselemnmasiv.access combined
ErrorLog ${APACHE_LOG_DIR}/produselemnmasiv.error
DocumentRoot /home/florin/sites/produselemnmasiv/current/public
SetEnvIf X-Forwarded-Proto https HTTPS=on
SetEnv HTTPS on
DirectoryIndex index.php index.html index.htm
<Directory "/home/florin/sites/produselemnmasiv/current/public">
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/php/php7.4-fpm-florin.sock|fcgi://localhost"
</FilesMatch>
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/produselemnmasiv.ro/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/produselemnmasiv.ro/privkey.pem
</VirtualHost>
</IfModule>