Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

mod_headers not working in .htaccess EA4 - CGI

Discussion in 'EasyApache' started by dotnetpoints, Dec 7, 2017.

  1. dotnetpoints

    dotnetpoints Registered

    Joined:
    Nov 29, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Website Owner
    Hi,

    I setup cPanel on my VPS and migrate my sites there but mod_headers are not working which are set in .htaccess file.

    <IfModule mod_headers.c>
    Header always set X-XSS-Protection "1; mode=block"
    Header always append X-Frame-Options SAMEORIGIN
    </IfModule>

    I am using EA4,PHP 5.6 and CGI Handler.

    I checked this Migrated to EA4, mod_headers not working in .htaccess thread but could not find any solution.

    Please let me know what changes I need to do so all mod_handlers will work properly.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,943
    Likes Received:
    1,820
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Check to see if the following thread helps:

    htaccess Header Set doesn't set

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice