# Alpine's apache2 package ships mod_rewrite but doesn't load it, and defaults # to a document root (and log files) that don't match this project -- this # file (auto-included via httpd.conf's "IncludeOptional conf.d/*.conf") # overrides just those bits, on top of what php83-apache2's own # conf.d/php83-module.conf already wired up (LoadModule for mod_php, the # .php handler). LoadModule rewrite_module modules/mod_rewrite.so ServerName localhost DocumentRoot "/var/www/html/public" Options -Indexes +FollowSymLinks AllowOverride All Require all granted DirectoryIndex index.html index.php # Alpine's own defaults log to a real file under ServerRoot (logs/*.log) -- # stdout/stderr instead, so `docker logs` shows them, the way the official # Debian php:apache image's symlinked log paths used to. ErrorLog /dev/stderr CustomLog /dev/stdout combined