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?
CacheEnable disk http://website.com/
CacheIgnoreNoLastMod On
CacheMaxExpire 86400
CacheLastModifiedFactor 0.1
CacheStoreNoStore Off
CacheStorePrivate On
CacheDefaultExpire 3600
CacheDirLength 3
CacheDirLevels 2
CacheMaxFileSize 640000
CacheMinFileSize 1
CacheRoot /opt/apicache
Answer
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?
No comments:
Post a Comment