httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c
as seen, they will not load by the httpd.conf. Can someone fill me in on how to load those directives.
the goal being to Speed Up Sites with htaccess Caching. The Apache docs and everything I can find tells me to uncomment the directives, but that does not work.
Well, the -l option shows Apache’s compiled in modules. Since the one’s you’re looking to use are being loaded via the config file, that means they aren’t compiled in… so it’s normal not to see them in that output.
I believe “httpd -M” would show all modules that have been loaded by Apache.
Ok so here is the output you asked for, it looks like the mods are loaded per the httpd.conf yet why would my headers be getting a specific NOCACHE directive, when none is loaded in the .htaccess?
If I were to put this in the .htaccess, would that make these modules load and give me what I am needing?
[code]# 1 YEAR
<FilesMatch “.(ico|pdf|flv)$”>
Header set Cache-Control “max-age=29030400, public”
1 WEEK
<FilesMatch “.(jpg|jpeg|png|gif|swf)$”>
Header set Cache-Control “max-age=604800, public”
2 DAYS
<FilesMatch “.(xml|txt|css|js)$”>
Header set Cache-Control “max-age=172800, proxy-revalidate”
1 MIN
<FilesMatch “.(html|htm|php)$”>
Header set Cache-Control “max-age=60, private, proxy-revalidate”