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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    41,502
    Likes Received:
    1,616
    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.
     
Loading...

Share This Page