<VirtualHost *:443>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html/Kurogo-Mobile-Web/www

    # ========== SSL 設定 ==========
    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/dev.crt
    SSLCertificateKeyFile /etc/ssl/private/dev.key
    
    # HTTP/2 支援
    Protocols h2 h2c http/1.1

    # 強制設定 HTTPS 環境變數
    SetEnv HTTPS on

    # ========== Log 設定 ==========
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # ========== 專案目錄權限 ==========
    <Directory /var/www/html/Kurogo-Mobile-Web/www>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>