# Silences the "could not reliably determine the server's fully qualified
# domain name" warning; the real host comes from the reverse proxy.
ServerName localhost

# Real client IP in the access log when running behind a reverse proxy on the
# same host / docker network (Laravel's TrustProxies handles the app side).
RemoteIPHeader X-Forwarded-For
RemoteIPTrustedProxy 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 127.0.0.1

<VirtualHost *:80>
    DocumentRoot /var/www/html/public

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

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
