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.

Change Apache Headers

Discussion in 'Workarounds and Optimization' started by Rhuan, Aug 16, 2013.

  1. Rhuan

    Rhuan Active Member

    Joined:
    Nov 10, 2010
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hi, looking for some trips of optimizations I see mod_expires and mod_header to make cache of static files like png, jpg, css, js...

    To implement this is necessary to change .htaccess of each cpanel account, so my question is:
    Is it possible to modify header of all sites/cpanel accounts in my server ?

    Thank you! :D
     
  2. simonas

    simonas Well-Known Member

    Joined:
    Apr 21, 2013
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lithuania
    cPanel Access Level:
    Root Administrator
    Yes. You will find httpd.conf file at /usr/local/apache/conf directory. There you can edit global rules.

    Or even better, go to apache configuration in WHM and there you will find that you can add custom lines.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page