Why are the Apache headers removed from my request when testing my web application?
This will occur when the CGI PHP handlers is in use. You should utilize the suPHP, LSAPI, or PHP-FPM PHP handlers.
By default, cPanel systems are issued with mod_ruid2 and PHP-FPM. These packages are compatible and enable htaccess header manipulation.
mod_ruid2 is not compatible with LSAPI, suPHP, or mod_suexec, and must be removed before these other options can be installed. We recommend having either mod_ruid2 or mod_suexec installed at all times.
To utilize LSAPI or suPHP, you should remove mod_ruid2, substitute mod_suexec, and additionally install mod_lsapi or mod_suphp: