Skip to content

Instantly share code, notes, and snippets.

@imduffy15
Created February 5, 2016 01:17
Show Gist options
  • Select an option

  • Save imduffy15/d41358fd146851719a44 to your computer and use it in GitHub Desktop.

Select an option

Save imduffy15/d41358fd146851719a44 to your computer and use it in GitHub Desktop.
proxy_cache_path /usr/local/Cellar/nginx-full/1.8.0/cache levels=1 keys_zone=STATIC:50m inactive=200d max_size=12g;
server {
listen 8080 default_server;
server_name localhost _;
root /usr/local/var/www;
# location /content/dist/r:hel/server/7/7Server/x86_64/ {
# proxy_cache STATIC;
# proxy_cache_valid 365d;
# proxy_ignore_headers X-Accel-Expires Expires Cache-Control;
# proxy_ssl_certificate certs/rhel7.crt;
# proxy_ssl_certificate_key certs/rhel7.key;
# proxy_pass https://cdn.redhat.com;
# }
location /content/dist {
error_page 404 = @rhel;
try_files $uri $uri/ @rhel;
}
location @rhel {
proxy_redirect off;
proxy_ssl_certificate certs/rhel6.crt;
proxy_ssl_certificate_key certs/rhel6.key;
proxy_pass https://cdn.redhat.com;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment