I'm going to start pulling out what little hair I have left on this thing. I just cannot get it working correctly and I have no idea what I'm doing wrong.
Quick nginx.conf:
If I set /etc/freebsd-update.conf and point ServerName to fbsd-update.example.com it appears to be working. But it never seems to cache anything. Searching Google I found hundreds of examples working like this:
But this doesn't work at all. Nothing is ever proxied.
What am I doing wrong?
Quick nginx.conf:
Code:
http {
server {
listen 80;
server_name fbsd-update.example.com;
location / {
proxy_pass http://update.freebsd.org;
proxy_store on;
}
}
}
Code:
http {
server {
listen 80;
server_name fbsd-update.example.com;
proxy_cache_path /var/cache/nginx level=1:2 keys_zone=MYCACHE:500m max_size=1000m inactive=1d;
location / {
proxy_pass http://update.freebsd.org;
proxy_cache MYCACHE;
}
}
}
What am I doing wrong?