Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

proxy and web caching

$
0
0
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.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>