nginx proxy

monday, 5 january 2015

Sinatra web applications require a proxy configuration with the Nginx HTTP server. The configuration spec for this site is set up as follows..

server { server_name; proxy_set_header X_Real_IP $remote_addr; proxy_set_header X_Forwarded_For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; location / { try_files $uri @proxy; } location @proxy { proxy_pass http://sinatra.myweb; } } upstream sinatra.myweb { server; }

This setup has been superceded with the usage of Nginx with Passenger

»»  nginx passenger

comment ?