# Apache vhost for PHP 8.3 (mod_proxy_fcgi -> app-83-php:9000)
# Loaded in httpd container; document root must match volume mount path.
<VirtualHost *:80>
    ServerName localhost
    DocumentRoot /var/www/html

    <Directory /var/www/html>
        Options -Indexes +FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    # Proxy PHP to FPM: pass request URI as filesystem path (Apache docs PHP-FPM example)
    ProxyPassMatch "^/(.*\.php)(/.*)?$" "fcgi://app-83-php:9000/var/www/html/$1" enablereuse=on

    ErrorLog /proc/self/fd/2
    CustomLog /proc/self/fd/1 combined
</VirtualHost>
