These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for mod_expires and mod_headers. on the new forum.
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
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.
Howdy,
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.
-Eric
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?
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?
-Eric