amorosso

Active Member
Aug 29, 2009
44
0
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...
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.
 

amorosso

Active Member
Aug 29, 2009
44
0
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 ?