1
vote
0answers
76 views

Deploying sinatra app on rails app sub uri using( unicorn and nginx)

I have rails app running on unicorn+nginx. below is the nginx.conf and unicorn.rb configuration. nginx.conf upstream unicorn { server unix:/tmp/unicorn.todo.sock fail_timeout=0; } server{ ...
2
votes
2answers
1k views

Running sinatra program [Kibana] behind nginx reverse proxy in web directory

I'm trying to get Kibana to run behind nginx within a specific web directory. Or, put another way, I'm trying to have nginx reverse proxy http://example.com/kibana to http://localhost:5601/, which is ...
0
votes
0answers
261 views

nginx proxy to geminabox always redirects to index.html

I have geminabox running on port 9292 using the "thin" rack web server. Here's my nginx config for the virtual host in sites-available: server { server_name gems.mydomain.net ; ...
-1
votes
1answer
252 views

Security best practices for Nginx + passenger multi hosting [closed]

I am planning to offer a free multi-hosting for a rack-based ruby framework using nginx and passenger to serve these apps. I am working on several options and I would like to ask some advice on the ...
1
vote
1answer
218 views

How do I decide if I need to introduce HAProxy into my nginx-unicorn stack for my web application?

I'm building a service-based web application. It consists of one primary rails app purely meant to handle requests, and a lot of other sinatra services running to actually process these requests. ...
2
votes
1answer
2k views

Trouble with nginx config and upstream servers

I'm trying to configure two applications to be served up by nginx. The first seems to be working fine and I duplicated the config for the second, however I'm having some problems. I'm running a ...
1
vote
2answers
414 views

How can I fix Sinatra redirects switching from https to http under nginx?

I have a Sinatra app running in nginx (using thin as a back-proxy) and I'm using redirect '/<path>' statements in Sinatra. However, when I access the site under https, those redirects send me to ...