File: //etc/apache2/sites-enabled/plasticcarbonfiber3d.conf
<VirtualHost *:80>
ServerName plasticcarbonfiber3d.com
ServerAlias www.plasticcarbonfiber3d.com
CustomLog ${APACHE_LOG_DIR}/plasticcarbonfiber3d.access combined
ErrorLog ${APACHE_LOG_DIR}/plasticcarbonfiber3d.error
DocumentRoot /home/florin/sites/plasticcarbonfiber3d/current/public
SetEnvIf X-Forwarded-Proto https HTTPS=on
SetEnv HTTPS on
DirectoryIndex index.php index.html index.htm
<Directory "/home/florin/sites/plasticcarbonfiber3d/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>
RewriteEngine on
RewriteCond %{SERVER_NAME} =plasticcarbonfiber3d.com [OR]
RewriteCond %{SERVER_NAME} =www.plasticcarbonfiber3d.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>