From 02c651ed36c8f0ef242c5e4984ccf2283cf5570d Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 11 Oct 2013 04:41:21 +0000 Subject: [PATCH] Add rules to the nginx.conf to allow it to serve files out of the snapshot directory. --- nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nginx.conf b/nginx.conf index c7209270e..93e5a1ce1 100644 --- a/nginx.conf +++ b/nginx.conf @@ -43,6 +43,10 @@ http { ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP; ssl_prefer_server_ciphers on; + if ($args ~ "_escaped_fragment_") { + rewrite ^ /static/snapshots$uri/index.html; + } + location /static/ { # checks for static file, if not found proxy to app alias /home/ubuntu/quay/static/;