| 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-enabled/ |
Upload File : |
# Foyer API — Laravel 13 over php-fpm, atomic-release shape.
#
# Subdomain: api.foyer.philiprehberger.com
# Web root: /var/www/foyer/current/public (symlinked release target)
#
# php-fpm handler is wired host-wide in
# /etc/apache2/conf-enabled/php8.3-fpm.conf so this vhost has no per-vhost
# handler block. After atomic-release symlink swap, post-deploy hook runs
# `sudo systemctl reload php8.3-fpm` so OPcache invalidates against the
# new release target. Apache itself does not need a reload — it proxies
# every `.php` to the FPM socket.
#
# Loopback note: the internal API surface `/_internal/*` is bound to the
# router behind two middlewares (internal.loopback + internal.hmac). Do
# not add a vhost-level Allow/Deny on that path — the framework owns it.
<VirtualHost *:80>
ServerName api.foyer.philiprehberger.com
DocumentRoot /var/www/foyer/current/public
<Directory /var/www/foyer/current/public>
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/foyer-api-error.log
CustomLog ${APACHE_LOG_DIR}/foyer-api-access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =api.foyer.philiprehberger.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>