# mod_whp_symlink (src/mod_whp_symlink/) - shared-httpd tenant symlink safety. # Loaded from conf.modules.d/99-whp-symlink.conf. WHP's server-scope drop-in # (conf.d/vhosts/000-whp-security.conf) may override any of these. # Tenant .htaccess `Options FollowSymLinks|All|Includes|ExecCGI` is # rewritten before the core parses it (FollowSymLinks -> SymLinksIfOwnerMatch, # Includes -> IncludesNOEXEC, ExecCGI dropped), so stock CMS files # (CodeIgniter 4, Joomla, OpenCart, Magento) stop answering 500 and no # tenant can switch owner-unchecked symlinks back on. Bare `Options All` # keeps Apache's meaning minus the unsafe parts: it becomes # `Indexes SymLinksIfOwnerMatch` (All includes Indexes and excludes # MultiViews, so Indexes stays on and MultiViews stays off). WHPHtaccessOptionsRemap On # Owner check on the file descriptor actually served (the Bluehost/cPanel # SymlinkProtect idea, as a filter): closes the check-then-open symlink # race of SymLinksIfOwnerMatch and the swapped-docroot case. Ships in Log # mode: flip to On (in WHP's drop-in) once the fleet log shows no # legitimate mismatches. WHPOwnerGuardRoot /mnt/users/ WHPOwnerGuard Log