File: //etc/apache2/sites-enabled/iphoneservice-le-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName iphoneservice.ro
ServerAlias www.iphoneservice.ro
CustomLog ${APACHE_LOG_DIR}/iphoneservice.access combined
ErrorLog ${APACHE_LOG_DIR}/iphoneservice.error
DocumentRoot /home/florin/sites/iphoneservice/current/public
SetEnvIf X-Forwarded-Proto https HTTPS=on
SetEnv HTTPS on
DirectoryIndex index.php index.html index.htm
<Directory "/home/florin/sites/iphoneservice/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/iphoneservice.ro/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/iphoneservice.ro/privkey.pem
</VirtualHost>
</IfModule>