Questions tagged [sinatra]

27 questions
1
vote
4 answers

How do I configure a website hosted on a Rackspace cloud server (Ubuntu)?

I have set up a Cloud Server instance on Rackspace, and I have purchased a domain name and directed it to the IP address of my server because I want to host a Sinatra application on this server, but it's my first time doing this and I need some…
picardo
  • 147
  • 3
  • 11
1
vote
1 answer

Sinatra + Thin + Nginx connect() failed (111: Connection refused) while connecting to upstream

I have a Sinatra app that is running on Thin with Nginx as a reverse proxy and receives a lot of traffic. My users are reporting 502 errors and looking at the Nginx logs i see a lot of these: [warn] upstream server temporarily disabled while…
Julien
  • 242
  • 1
  • 3
  • 13
0
votes
1 answer

How can I determine why a process is dying?

On a CentOS 6.5 server I am running a very simple HTTP listener with Sinatra that exists simply to accept POST requests and pass the payload content of the POST request to another service. I often find that the process with the PID of the Sinatra…
asdoylejr
  • 281
  • 1
  • 2
  • 7
0
votes
1 answer

Unicorn displaying Rack errors uninitialized constant Rack::Lint::REQUEST_METHOD

I've attempted to install Unicorn + Nginx on Ubuntu 14.04. Whenever the site gets accessed (via localhost:8080 or via Nginx) it just returns a blank 500 error. The error log gives me the following: NameError: uninitialized constant…
Mattisdada
  • 131
  • 4
0
votes
0 answers

Many webapps, one vps

Might be a noob question, Google and SF searches didn't turn up anything super useful. Could be using the wrong words here. I've got a vps, with one port 80 app running on it. I'd like to add two other apps, accessible from different domains, to…
InBetween
  • 101
  • 1
0
votes
0 answers

Serving static files with NGINX on Unicorn served app

I've just set up a Sinatra app running on Unicorn and served through a socket by NGINX. I'm trying to get NGINX to serve my static assets with this in my nginx config: * EDIT * (added full server config) upstream unicorn { server…
Christopher Reid
  • 253
  • 1
  • 3
  • 12
0
votes
1 answer

PHP/Ruby captive portal first domain seems cached

I have created a captive portal with iptables I use what many people seem to use : Users can request DNS, packet marked as 99. 99 means no internet else the user does have access. When a user visits a page when visiting for example stack overflow.…
Dany
  • 133
  • 8
0
votes
1 answer

Starting phusion passenger on working apache

I've got Apache (-v): Server version: Apache/2.0.63 Server built: Nov 29 2009 15:23:34 Cpanel::Easy::Apache v3.2.0 rev4899 I want to start new Sinatra application on passenger. I've just installed passenger gem. So now I need to set up apache…
fl00r
  • 575
  • 2
  • 7
  • 20
0
votes
1 answer

How do I configure Nginx proxy to pass to multiple Sinatra ports?

I have a Sinatra app. I start two Thin servers listening on: 4567 and 4568. However, I have configured Nginx to only forward to 4567. server { listen 443; listen [::]:443; root /var/www/example/public; index…
user3574603
  • 143
  • 3
0
votes
1 answer

Systemd service for Sinatra + Thin keeps restarting

I have systemd service for a Sinatra app running with Thin server behind an Nginx reverse proxy. It works fine but because it receives a lot of traffic i'm seeing a lot of nginx errors about being unable to connect to upstream. Upon inspecting the…
Julien
  • 242
  • 1
  • 3
  • 13
0
votes
0 answers

NGINX/GemInABox - static links aren't properly passed

NGINX location config: location /geminabox/ { client_body_buffer_size 128K; client_max_body_size 16M; rewrite ^/geminabox/(.*) /$1 break; proxy_set_header Host $http_host/geminabox/; proxy_pass http://127.0.0.1:8205/; } I'm…
-1
votes
1 answer

Security best practices for Nginx + passenger multi hosting

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 best security practices for this type of setup in a…
devnull
  • 188
  • 1
  • 8
1
2