I have tried a few configurations to setup website caching but with no success.
I do have the proxy working however.
Can someone provide a simple config to get basic caching working. The backend is a weblogic app server.
config so far ...
http {
.
.
proxy_ignore_headers Cache-Control;
proxy_cache_path /data/web_content/cache keys_zone=content:10m loader_threshold=300 loader_files=200;
.
.
.
server {
.
.
proxy_cache content;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://service.local:7003;
.
.
}
.
.
Thanks.
I do have the proxy working however.
Can someone provide a simple config to get basic caching working. The backend is a weblogic app server.
config so far ...
http {
.
.
proxy_ignore_headers Cache-Control;
proxy_cache_path /data/web_content/cache keys_zone=content:10m loader_threshold=300 loader_files=200;
.
.
.
server {
.
.
proxy_cache content;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://service.local:7003;
.
.
}
.
.
Thanks.