File: //etc/apache2/sites-enabled/comfama.sports-crowd.com.conf
# demo.sports-crowd.com
<VirtualHost *:80>
ServerAlias comfama.sports-crowd.com
DocumentRoot /var/www/vhost/disk-apps/comfama.sports-crowd.com/public
<Directory /var/www/vhost/disk-apps/comfama.sports-crowd.com>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
#<FilesMatch \.php$>
# For Apache version 2.4.10 and above, use SetHandler to run PHP as a fastCGI process server
# SetHandler "proxy:unix:/run/php/php8.0-fpm.sock|fcgi://localhost"
#</FilesMatch>
RewriteEngine on
RewriteCond %{SERVER_NAME} =comfama.sports-crowd.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>