Skip to main content

Apache strips out custom header

Comments

4 comments

  • cPanelMichael
    PHP : 7.1 with CGI Apache : mod_mpm_event + mod_cgid + mod_suexec

    Hello, Using CGI with Mod_Suexec can lead to stripped headers like you have described. Can you try switching to a different handler (e.g. suPHP) to verify if the issue persists? Additionally, you may need to add an entry like this in the .htaccess file: SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
    Thank you.
    0
  • Jr Sarath
    its a production server with over 500 accounts.. kindly let me know more about suPHP handler.. docs link will be perfect and if you then some brief pros and cons
    0
  • cPanelMichael
    Hello, We document the different available PHP handlers at: PHP Handlers - EasyApache 4 - cPanel Documentation For testing, you may want to consider enabling suPHP on a version of PHP that isn't widely used on the system (e.g. PHP 7.2), and then ensure the account you are testing with is assigned to that version of PHP. See: MultiPHP Manager for WHM - Version 70 Documentation - cPanel Documentation Thank you.
    0
  • Jr Sarath
    Well that a nice clever solution.. thanks for the help
    0

Please sign in to leave a comment.