Easy Apache Issue - Authentication via Headers isn't working

Taha Haider

Active Member
Dec 24, 2015
cPanel Access Level
Root Administrator
we have a client, who is using authentication via HTTP authorization header.

I have enabled some modules from apache as well but no luck, his code is working fine on centos based virtual hosting but on cPanel it says "Online server missing authorization header"

Kindly advise Please



cP Technical Analyst II
Staff member
May 15, 2017
cPanel Access Level
Root Administrator
Hi @Taha Haider,

Is CGI in use? CGI specifically strips headers as a security measure:
Apache Tutorial: Dynamic Content with CGI - Apache HTTP Server Version 2.4
Missing environment variables
If your CGI program depends on non-standard environment variables, you will need to assure that those variables are passed by Apache.

When you miss HTTP headers from the environment, make sure they are formatted according to RFC 2616, section 4.2: Header names must start with a letter, followed only by letters, numbers or hyphen. Any header violating this rule will be dropped silently
If so, you'll need to define the header directly in the Apache configuration, via userdata includes, or you'll need to use another handler:
Modify Apache Virtual Hosts with Include Files - EasyApache 4 - cPanel Documentation
  • Like
Reactions: Taha Haider