You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by DW <xf...@hotmail.com> on 2011/06/07 02:33:03 UTC
[users@httpd] Re: IfModule mod_expires.so
Tom Evans wrote:
> On Mon, Jun 6, 2011 at 1:52 AM, DW <xf...@hotmail.com> wrote:
>>
>
> <IfModule> is looking for a module file name or module name. In this
> case, it would be either 'mod_expires.c' or 'expires_module'.
>
>
It is enabled in my config file. I have already tried to do something
like this but it is still not working:
<IfModule mod_expires.so>
ExpiresActive On
ExpiresByType text/html "access plus 60 minutes"
ExpiresByType text/css "access plus 60 minutes"
ExpiresByType application/x-javascript "access plus 60 minutes"
ExpiresByType image/bmp "access plus 60 minutes"
ExpiresByType image/gif "access plus 60 minutes"
ExpiresByType image/x-icon "access plus 60 minutes"
ExpiresByType image/jpeg "access plus 60 minutes"
</IfModule>
My next test is to remove <ifModule> completely to see if it works.
Perhaps the testing of the module is crippling the server.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: IfModule mod_expires.so
Posted by Igor Cicimov <ic...@gmail.com>.
Looks like you still don't understand what the problem is. Replace the
<IfModule
mod_expires.so> line with <IfModule mod_expires.c> or
<IfModule expires_module>
Removing ifModule statement will work of course since the one you have is
wrong.
Igor
On Tue, Jun 7, 2011 at 10:33 AM, DW <xf...@hotmail.com> wrote:
> Tom Evans wrote:
> > On Mon, Jun 6, 2011 at 1:52 AM, DW <xf...@hotmail.com> wrote:
> >>
> >
> > <IfModule> is looking for a module file name or module name. In this
> > case, it would be either 'mod_expires.c' or 'expires_module'.
> >
> >
>
> It is enabled in my config file. I have already tried to do something
> like this but it is still not working:
>
> <IfModule mod_expires.so>
> ExpiresActive On
> ExpiresByType text/html "access plus 60 minutes"
> ExpiresByType text/css "access plus 60 minutes"
> ExpiresByType application/x-javascript "access plus 60 minutes"
> ExpiresByType image/bmp "access plus 60 minutes"
> ExpiresByType image/gif "access plus 60 minutes"
> ExpiresByType image/x-icon "access plus 60 minutes"
> ExpiresByType image/jpeg "access plus 60 minutes"
> </IfModule>
>
> My next test is to remove <ifModule> completely to see if it works.
> Perhaps the testing of the module is crippling the server.
>
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>