1

Q1) Do I need mod_deflate running on apache? does it help in performance in anyway?

Q2) Do I need mod_cache running on apache if nginx is serving a static caching proxy?

<IfModule mod_cache.c>
CacheEnable disk http://website.com/
CacheIgnoreNoLastMod On
CacheMaxExpire 86400
CacheLastModifiedFactor 0.1
CacheStoreNoStore Off
CacheStorePrivate On
<IfModule mod_disk_cache.c>
CacheDefaultExpire 3600
CacheDirLength 3
CacheDirLevels 2
CacheMaxFileSize 640000
CacheMinFileSize 1
CacheRoot /opt/apicache
</IfModule>
</IfModule>

2 Answers 2

0

You don't need to run mod_deflate on apache, use compression of nginx instead. Secondly you can use caching of nginx instead of mod_cache on apache.

You can read up using the link below to get a better idea of nginx caching.

How to set up Nginx as a caching reverse proxy?

1
  • but an off question... wouldn't mod_deflate/cache running increase the performance of content passed to nginx?
    – John
    Jan 20, 2011 at 19:25
0

If Nginx was doing gzip compression on the client's incoming connection, I would guess that the overhead of compression in Apache just to get the response back to Nginx would outweigh, or at least cancel out any gain.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .