<VirtualHost *:80>
    ServerName breizhcalendar.ezeo.bzh
    ServerAlias www.breizhcalendar.ezeo.bzh
    
    DocumentRoot /var/www/breizhcalendar
    
    # Configuration du répertoire
    <Directory /var/www/breizhcalendar>
        Options -Indexes +FollowSymLinks
        AllowOverride All
        Require all granted
        
        # Support PHP
        <FilesMatch \.php$>
            SetHandler "proxy:unix:/run/php/php8.2-fpm.sock|fcgi://localhost"
        </FilesMatch>
    </Directory>
    
    # Permissions pour events.json (écriture nécessaire)
    <Files "events.json">
        Require all granted
    </Files>
    
    # Désactiver l'accès aux fichiers cachés
    <FilesMatch "^\.">
        Require all denied
    </FilesMatch>
    
    # Logs
    ErrorLog ${APACHE_LOG_DIR}/breizhcalendar_error.log
    CustomLog ${APACHE_LOG_DIR}/breizhcalendar_access.log combined
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
