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!

Is Mod_expires loaded and working

Discussion in 'General Discussion' started by amorosso, Jan 24, 2013.

  1. amorosso

    amorosso Active Member

    Joined:
    Aug 29, 2009
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    56
    Hi, I built Apache with mod_headers and mod_expires. I don't think expires is working. Do I have to enable it. Is they a way to see if it is loaded and working at all. Thank.. I have centos id that helps...
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,855
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can check to see if it's built with Apache via a command such as:

    Code:
    # httpd -l|grep expires
    If it is, you will still need to enable it with a .htaccess file within an account, or in the Apache configuration file. The following documentation should be useful:

    mod_expires - Apache HTTP Server

    Also, this thread may be helpful:

    Mod_Expires for all users

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. amorosso

    amorosso Active Member

    Joined:
    Aug 29, 2009
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    56
    Awesome, thank you so much. So I guess I did that part right..

    root@dom [~]# httpd -l|grep expires
    mod_expires.c
    root@dom [~]#

    I thought that it needed to be enabled via WHN or ssh. I do have everything set right in my .htaccess and just now realized it is working on my site but only if I use the domain.com and now www.domain.com and of course that's the one I need to work. Any ideas on that ?
     
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