<VirtualHost *:80>
    ServerName basecamp-mcp.example.com
    RewriteEngine On
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</VirtualHost>

<VirtualHost *:443>
    ServerName basecamp-mcp.example.com
    SSLEngine on
    # cPanel/AutoSSL normally supplies these paths automatically.
    SSLCertificateFile /path/to/fullchain.pem
    SSLCertificateKeyFile /path/to/privkey.pem

    ProxyPreserveHost On
    ProxyPass        / http://127.0.0.1:3100/ timeout=120
    ProxyPassReverse / http://127.0.0.1:3100/

    RequestHeader set X-Forwarded-Proto "https"
    ErrorLog  /var/log/httpd/basecamp-mcp-error.log
    CustomLog /var/log/httpd/basecamp-mcp-access.log combined
</VirtualHost>
