Hi im new to virtualmin and need some help.
Im trying to get these two modules to work. mod_expires and mod_headers.
Centos , virtualmin
I have 3 domains, and they are all working, except for the headers are giving a nocache directive.
these modules are listed in /etc/conf/httpd.conf
and are NOT commented out.
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
Compiled in modules:
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
Header set Cache-Control “max-age=29030400, public”
Header set Cache-Control “max-age=604800, public”
Header set Cache-Control “max-age=172800, proxy-revalidate”
Header set Cache-Control “max-age=60, private, proxy-revalidate”
Yeah, it looks like it’s loading okay.
If you take a look at $HOME/logs/error_log, do you see any errors in there that may relate to your htaccess file?