<VirtualHost *:80>
    ServerName your-domain.com
    DocumentRoot /var/www/laravel-filament/public

    <Directory /var/www/laravel-filament/public>
        AllowOverride All
        Require all granted
    </Directory>

    # PHP-FPM設定
    <FilesMatch \.php$>
        SetHandler "proxy:unix:/var/run/php/php8.3-fpm.sock|fcgi://localhost"
    </FilesMatch>

    # ログ設定
    ErrorLog ${APACHE_LOG_DIR}/laravel-filament_error.log
    CustomLog ${APACHE_LOG_DIR}/laravel-filament_access.log combined
</VirtualHost>