Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

67 lines (59 sloc) 2.152 kb
server
{
listen 127.0.0.1:8080;
server_name adobetechsummit.localhost.confreg.com;
root /usr/local/sites/attendease_samplecon/public;
index index.php index.html index.htm;
rewrite ^(.*)-([0-9]+)\.(css|js|png|swf)$ $1.$3 break;
rewrite ^/check-in$ /check-in/ permanent;
location ~ \.php$
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
include fastcgi_params;
}
location ^~ /api/
{
#rewrite ^/api/(.*) /$1 break;
proxy_pass_request_headers on;
proxy_ignore_headers Expires Cache-Control;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X_FORWARDED_PROTO https;
proxy_set_header Host $http_host; proxy_pass_header ATTENDEASE_PROXY_ACCESS_TOKEN;
proxy_pass_header jr_token;
proxy_pass_header HTTP_X_JR_TOKEN; proxy_pass_header X_JR_TOKEN;
proxy_pass_header Jr_token;
proxy_pass_header Set-Cookie;
proxy_pass http://attendease;
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]\.";
}
location ^~ /
{
if (-f $request_filename)
{
break;
}
#rewrite ^/api/(.*) /$1 break;
proxy_pass_request_headers on;
proxy_ignore_headers Expires Cache-Control;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_pass_header ATTENDEASE_PROXY_ACCESS_TOKEN;
proxy_pass_header jr_token;
proxy_pass_header HTTP_X_JR_TOKEN;
proxy_pass_header X_JR_TOKEN;
proxy_pass_header Jr_token;
proxy_pass_header Set-Cookie;
proxy_pass http://adobetechsummit;
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]\.";
}
}
Jump to Line
Something went wrong with that request. Please try again.