Tenant .htaccess files that say `Options +FollowSymLinks` / `All` /
`Includes` (stock CodeIgniter 4, Joomla, OpenCart, Magento) answer 500 on the
shared tier since the AllowOverride Options= lockdown. A small loadable module,
built against the distribution httpd-devel (stock AlmaLinux httpd RPMs stay):
- WHPHtaccessOptionsRemap On: rewrites the Options line in .htaccess before
the core parses it (FollowSymLinks -> SymLinksIfOwnerMatch, Includes ->
IncludesNOEXEC, positive ExecCGI dropped), so those files work while the
core's own owner-match symlink check stays in charge. Covers nested <If>.
- WHPOwnerGuard Log|On: fstat() owner check on the file descriptor actually
served (the Bluehost/cPanel SymlinkProtect idea, as an output filter);
closes the SymLinksIfOwnerMatch check-then-open race and the swapped
public_html case. Ships in Log mode.
DRAFT: measured locally only, see the WHP-side write-up.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6