Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8167681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:16:29+00:00 2026-06-06T20:16:29+00:00

Using Rubber I vulcanized my existing project with resque and redis. I got it

  • 0

Using Rubber I vulcanized my existing project with resque and redis. I got it all deployed. Hitting the web_tools index showed a Resque link. But clicking on it gave me a 404.

I figured nginx didn’t know what to do with “/resque” so I added the file config/rubber/role/web_tools/resque-nginx.conf with:

<% if resque_host = rubber_instances.for_role('resque_web').first %>

  <%
    @path = "/etc/nginx/rubber/tools/resque.conf"
  %>

  location /resque
  {
    proxy_pass http://<%= resque_host.full_name %>:<%= rubber_env.resque_web_port %>;
  }

<% end %>

essentially copying the haproxy-nginx.conf file from the same directory.

My first question is – why did I need to do this? Should vulcanize have done this or did I do something wrong already?

Moving on. This nginx configuration did not work. But I got a little farther, at least I’m hitting the WEBrick server now. I got a page that said:

Sinatra doesn’t know this ditty.

So I changed my config thinking that Resque’s WEBrick server didn’t know what /resque was:

location /resque
{
  rewrite ^/resque/(.*) /$1 break;
  proxy_pass http://<%= resque_host.full_name %>:<%= rubber_env.resque_web_port %>;
}

This works but only if I manually go to https://myhost.com/resque/overview (the link that’s added by Rubber to your tools index page is just /resque). But all the other links (including any CSS and .js files) on the resque web pages are now broken because the links are not prefaced with resque/. In other words, the link for Working is just /working but it needs to be /resque/working for nginx to know what to do with it.

I’ve tried other things like getting rid of the rewrite and changing the index page to point to resque/overview but that still gives me the “Sinatra doesn’t know this ditty” page.

I’ve tried:

location /resque
{
  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;
  proxy_pass http://<%= resque_host.full_name %>:<%= rubber_env.resque_web_port %>;
}

I get the “Sinatra…ditty” page when I hit /resque or /resque/overview.

Then I added the rewrite back in:

location /resque
{
  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;
  rewrite ^/resque/(.*) /$1 break;
  proxy_pass http://<%= resque_host.full_name %>:<%= rubber_env.resque_web_port %>;
}

And this was the same result as not having all the proxy calls.

Does anyone know how to get nginx and the Resque web server working nicely together?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T20:16:30+00:00Added an answer on June 6, 2026 at 8:16 pm

    Wow, what a coincidence. I’m working on upgrading our app from Rubber 1.15 -> 2.0.5 and I ran into this problem just yesterday!

    Yes, rubber vulcanize resque should take care of this, but apparently no one wrote the Nginx proxy configs.

    Your first try at the Nginx was pretty much the correct thing to do.

    The reason the CSS, images, and links are broken is because resque-web is looking for all the stuff relative to the root of the resque-web app. What you need to is change the resque-web Rack file (/config/resque-web.ru) to fire up the app in the subdir of /resque. That way everything will be relative (/resque/overview, etc.) and be fine.

    I submitted a pull request yesterday to fix this for future users, but you can apply these changes to your project and everything will work for you.

    Let me know if that doesn’t work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using C# (the .NET framework), I'm looping through all the TimeZones and their AdjustmentRules...
using a binary search tree I need to add to a vector all int
I'm using a curstom double buffering and want to draw a rubber band line
I'm setting up an instance on ec2 using the rubber deployment tool. I need
I have a custom control that I'm using as a rubber band which paints
I'm using rubber to deploy a rails application and am having trouble connecting to
I am using the rubber gem and I have set it up to use
I am trying to deploy a rails3.1 app to EC2 using rubber 1.15.0 gem.
How do i setup queue_classic background jobs on EC2 using the rubber gem? I
Using JQuery, how do I select all elements with class x within an element

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.