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 7924499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:47:27+00:00 2026-06-03T17:47:27+00:00

I am using rails 3.0.7 and I have apache2 + unicorn installed in the

  • 0

I am using rails 3.0.7 and I have apache2 + unicorn installed in the production environment.

I have my .conffile as follows

<VirtualHost *:80>
ServerName something.com

# Point this to your public folder of teambox
DocumentRoot /pal/public

RewriteEngine On

<Proxy balancer://unicornservers>
  BalancerMember http://127.0.0.1:5000
</Proxy>

# Redirect all non-static requests to unicorn
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://unicornservers%{REQUEST_URI} [P,QSA,L]

ProxyPass / balancer://unicornservers/
ProxyPassReverse / balancer://unicornservers/
ProxyPreserveHost on

<Proxy *>
  Order deny,allow
  Allow from all
</Proxy>

Tried RewriteCond %{REQUEST_FILENAME} !-f

But it seems that apache is not serving the static requests ( the files in the public directory). All the static requests also comes to rails. What configuration am I missing ?

  • 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-03T17:47:29+00:00Added an answer on June 3, 2026 at 5:47 pm

    I know this question is fairly dated, however…
    I was having exactly the same issue, and couldn’t find a solution anywhere.
    I came across this question

    Removing the following works.

    ProxyPass / balancer://unicornservers/
    ProxyPassReverse / balancer://unicornservers/
    ProxyPreserveHost on
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed rails 3.1 with apache2 and passenger on ubuntu 10.04 . using
I have some production Rails 2 apps. I want to start using Rails 3
The situation is as follows (I am using Rails 3.1). I have the following
I have a deployment using: rails 2.3.2 ruby 1.8.7 mysql db and 3 mongrel
I'm using jQuery with rails and have the following piece of code $('#related').html(<%= render
I am using rails beta 3 and I have a erb page named index.html.erb
I have a legacy project using Rails 2.3.5 but I can't find with which
I am using Rails 3.2. I have following models: Blog Comment User class Blog
I'm using Rails' accepts_nested_attributes_for method with great success, but how can I have it
I have been using the Rails console a fair bit lately and its making

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.