From 9eb0b682a9321fbae87db5ef9ddc4f2253467bc0 Mon Sep 17 00:00:00 2001 From: Pepper Date: Thu, 26 Feb 2015 19:01:14 -0500 Subject: switched to fcgi --- pb_nginx.conf | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pb_nginx.conf diff --git a/pb_nginx.conf b/pb_nginx.conf new file mode 100644 index 0000000..994f69a --- /dev/null +++ b/pb_nginx.conf @@ -0,0 +1,22 @@ +server { + + server_name asdf.us *.asdf.us; + + access_log /var/www/asdf.us/logs/nginx.access.log; + location / { + proxy_pass http://asdf.us:8002; + client_max_body_size 2252K; + } + location /im/api { + include fastcgi_params; + fastcgi_split_path_info ^()(.*)$; + fastcgi_param PATH_INFO $document_uri; + fastcgi_param QUERY_STRING $document_uri; + fastcgi_param HTTP_X_FORWARDED_HOST "asdf.us"; + fastcgi_pass localhost:8999; + } + location /donjuan/data/ { + rewrite ^/donjuan/data/(.*) http://i.asdf.us/donjuan_data/$1 permanent; + } +} + -- cgit v1.2.3-70-g09d2