Browse files

New Youthvoices site.

  • Loading branch information...
1 parent c84dee4 commit c6af4da9ce07a6743381f381b417c137b2e87c80 @pgib pgib committed Nov 14, 2011
Showing with 38 additions and 1 deletion.
  1. +4 −0 upstreams/youthvoices.conf
  2. +34 −1 virtualhosts/localhost.youthvoices.adobe.com.conf
View
4 upstreams/youthvoices.conf
@@ -0,0 +1,4 @@
+upstream youthvoices
+{
+ server localhost:3000 max_fails=3 fail_timeout=2s;
+}
View
35 virtualhosts/localhost.youthvoices.adobe.com.conf
@@ -3,7 +3,7 @@ server
listen 127.0.0.1:8080;
server_name localhost.youthvoices.adobe.com;
- root /usr/local/sites/youthvoices.adobe.com;
+ root /usr/local/sites/ayv/youthvoices.adobe.com/public;
index index.php index.html;
if (!-e $request_filename)
@@ -24,4 +24,37 @@ server
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
include fastcgi_params;
}
+
+ #passenger_enabled on;
+ #passenger_base_uri /hivelive;
+ #passenger_base_uri /galleries;
+ #passenger_base_uri /youth-media-gallery;
+
+ location ^~ /
+ {
+ proxy_pass_request_headers on;
+ proxy_ignore_headers Expires Cache-Control;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_pass_header Set-Cookie;
+ proxy_set_header Host $http_host;
+ proxy_pass http://youthvoices;
+
+ gzip on;
+ gzip_min_length 1000;
+ gzip_proxied expired no-cache no-store private auth;
+ gzip_types text/plain text/css application/xml application/json application/javascript;
+ gzip_disable "MSIE [1-6]\.";
+
+ if (-f $request_filename)
+ {
+ break;
+ }
+ }
+
+ gzip on;
+ gzip_min_length 1000;
+ gzip_proxied expired no-cache no-store private auth;
+ gzip_types text/plain text/css application/xml application/json application/javascript;
+ gzip_disable "MSIE [1-6]\.";
+
}

0 comments on commit c6af4da

Please sign in to comment.