<VirtualHost *:80>
    ServerName frontend.phplist.local
    ServerAdmin webmaster@localhost

    DocumentRoot /{pathToTheProject}/web-frontend/public

    ErrorLog ${APACHE_LOG_DIR}/web-frontend-error.log
    CustomLog ${APACHE_LOG_DIR}/web-frontend-access.log combined

    <Directory /{pathToTheProject}/web-frontend/public>
        Options FollowSymLinks
        AllowOverride All
        Require all granted
        DirectoryIndex app.php
    </Directory>

    <FilesMatch "^\.">
        Require all denied
    </FilesMatch>

    <IfModule proxy_fcgi_module>
        <FilesMatch \.php$>
            SetHandler "proxy:unix:/run/php/php8.1-fpm.sock|fcgi://localhost"
        </FilesMatch>
    </IfModule>
</VirtualHost>
