| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /etc/apache2/sites-available/ |
Upload File : |
<VirtualHost *:80>
ServerName api.almanac.philiprehberger.com
DocumentRoot /var/www/almanac/current/public
<Directory /var/www/almanac/current/public>
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
# SSE chat streaming needs the proxy not to buffer + long timeouts.
# Apache doesn't buffer responses by default for php-fpm, but the
# FCGI proxy timeout needs raising past Apache's 30s default.
ProxyTimeout 600
# Public demo CORS — almanac.philiprehberger.com talks to this host
# cross-origin. Per-workspace `allowed_chat_origins` provides the
# production-grade variant; the vhost-level allowlist below covers
# the public-demo case without round-tripping every preflight to PHP.
Header always set Access-Control-Allow-Origin "https://almanac.philiprehberger.com" "expr=%{REQUEST_URI} =~ m#^/v1/#"
Header always set Access-Control-Allow-Methods "GET, POST, PATCH, DELETE, OPTIONS" "expr=%{REQUEST_URI} =~ m#^/v1/#"
Header always set Access-Control-Allow-Headers "Authorization, Content-Type, Accept" "expr=%{REQUEST_URI} =~ m#^/v1/#"
Header always set Access-Control-Max-Age "300" "expr=%{REQUEST_URI} =~ m#^/v1/#"
Header always set Access-Control-Allow-Credentials "true" "expr=%{REQUEST_URI} =~ m#^/v1/#"
RewriteEngine On
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteCond %{REQUEST_URI} ^/v1/
RewriteRule ^(.*)$ $1 [R=204,L]
ErrorLog ${APACHE_LOG_DIR}/api-almanac-error.log
CustomLog ${APACHE_LOG_DIR}/api-almanac-access.log combined
</VirtualHost>