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.

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:
    6
    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:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    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.
     
  3. amorosso

    amorosso Active Member

    Joined:
    Aug 29, 2009
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    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