Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
47 views

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 ...
0
votes
1answer
73 views

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 ...
1
vote
0answers
91 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 ...
2
votes
1answer
343 views

Installing resque on amazon ec2 instances

My problem is to process images through ec2 instances. Based this similar question: Separate server for Resque workers And in this article: ...
1
vote
1answer
393 views

Apache2 + SSL + Proxy to Sinatra App: Will it work? Or will there be some warning to the user?

I have a situation where the main website is a legacy app written in ColdFusion which I've recently migrated from MX 6.1 to 9.0.1. Another part of the website is a blog/forum in PHP5 on WordPress. ...
-1
votes
1answer
267 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
226 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. ...
1
vote
1answer
1k views

Unicorn and copy_on_write_friendly?

While researching Unicorn configuration options I came across this snippet.. GC.respond_to?(:copy_on_write_friendly=) and GC.copy_on_write_friendly = true If I undertand correctly, it optimizes ...
2
votes
5answers
2k views

Redirect to www subdomain via DNS

Is it possible to set a DNS record to redirect all example.com/* traffic to www.example.com/*? I'm running a Sinatra app on Heroku's Cedar stack. I set up Heroku's Custom Domains addon, and the ...
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 ...
2
votes
2answers
2k views

Where I can find the log files of thin webserver

I'm using thin web server for my sinatra application. Some times it generate 504 gateway time out. Where I can see the access and error logs of thin?
1
vote
2answers
466 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 ...
3
votes
2answers
3k views

start sinatra app in background with stdout and stderr redirected(append) to a file

I have a sinatra app which I run on my local machine using ruby app.rb. While deploying it on a remote machine via ssh, How do i run it in background and redirect stdout and stderr to a log file. On ...
0
votes
1answer
801 views

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 ...
1
vote
4answers
6k views

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 ...