You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Admin-Stress <me...@yahoo.com> on 2003/11/13 00:45:31 UTC

[users@httpd] mod_expires problem ...

I used mod_expires like this in httpd.conf :

ExpiresActive On

ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"

So, it is very clear, I just set the expiration only for .gif and .jpeg.

But why I got this error in the log file :

[Thu Nov 13 00:46:59 2003] [error] [client 10.0.0.88] internal error: bad expires code:
/home/www/example.com/html/index.html
[Thu Nov 13 00:46:59 2003] [error] [client 10.0.0.88] internal error: bad expires code:
/home/www/example.com/html/showcase/dummy.swf
[Thu Nov 13 00:46:59 2003] [error] [client 10.0.0.88] internal error: bad expires code:
/home/www/example.com/html/showcase/intro.swf

This problem happen after I used source version of apache 2.0.48. I compiled mod_expires as static
module.

This was not happen in 2.0.40 rpm version.

Anyone know why?
and how to fix it ?


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

---------------------------------------------------------------------
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


[users@httpd] mod_deflate does not work ...

Posted by Admin-Stress <me...@yahoo.com>.
I compiled apache 2.0.48, and I compiled mod_deflate as static module --enable-deflate

In the httpd.conf, I added lines like this :

# mod_deflate configuration
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/plain

DeflateFilterNote ratio
LogFormat '"%r" %b (%{ratio}n) "%{User-agent}i"' deflate
CustomLog /var/log/httpd/deflate_log deflate
# end mod_deflate

But why I did not see any log output in /var/log/httpd/deflate_log ??? 

I just want to compress html and text.

I cleared the web browser cache, and then refreshed the website. But I cant see the deflate in
action. The size of deflate_log is 0.

Bug?

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

---------------------------------------------------------------------
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] mod_expires problem ...

Posted by Joshua Slive <jo...@slive.ca>.
On Wed, 12 Nov 2003, Admin-Stress wrote:

> I used mod_expires like this in httpd.conf :
>
> ExpiresActive On
>
> ExpiresByType image/gif "access plus 1 month"
> ExpiresByType image/jpeg "access plus 1 month"
>
> So, it is very clear, I just set the expiration only for .gif and .jpeg.
>
> But why I got this error in the log file :
>
> [Thu Nov 13 00:46:59 2003] [error] [client 10.0.0.88] internal error: bad expires code:
> /home/www/example.com/html/index.html

See:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24459

No solution, but a work-around is suggested.

Joshua.

---------------------------------------------------------------------
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