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

  • Home
  • SEARCH
  • 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 8468421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:55:38+00:00 2026-06-10T15:55:38+00:00

Some help would be appreciated – keep getting Forbidden 403 error. Nginx configuration: listen

  • 0

Some help would be appreciated – keep getting Forbidden 403 error.
Nginx configuration:

listen       80;
server_name  www.xxx.com;   
passenger_enabled   on;
#charset koi8-r;
#access_log  logs/host.access.log  main;
root   /home/deploy/xxx.com/current;

I’ve deployed with Capistrano, and it was successful (cap deploy)
I’ve googled and not found much help, from those that I tried.
Secondly, I’ve removed my “public” folder, and enabled my “route” in routes.rb.

root to: 'static_pages#home'

Origionally I had the “public” folder in place, but it kept going to “index.html”, not the Rails /Home. I’ve tried this locally and it works perfectly with “rails server” on localhost:3000.

It almost appears as if NGINX does not now how to find or serve up the Rails pages.

Ps. I did review StackOverflow, not luck there.

Any help would be appreciated.

  • 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-10T15:55:40+00:00Added an answer on June 10, 2026 at 3:55 pm

    Yihhaaaaa ok got it!

    The problem seemed to be two things as mentioned in the comments:

    (a) Pre-compilation error; "images" were not loading. Went into
    config/environments/production.db and turned on "true" for asset
    compilation.

    (b) Second thing was because I was developing on Mac OS X, a Javascript Runtime is included by default, whereas my production
    Ubuntu not so. So I added to GemFile – gem "therubyracer".

    And what do you know it works!
    The key was looking in the production.log (/home/deploy/xxx.com/current/log/).
    That shall tell all.

    Cheers

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

Sidebar

Related Questions

i'm still trying to grasp this stuff so some help would be appreciated I
I'm always fighting with regular expression, some help would be appreciated. What is the
I would appreciate some help with something I working on and have not done
I would appreciate some help with an UPDATE statement. I want to update tblOrderHead
I would appreciate some help on creating the proper SQL to retrieve only one
I'm pretty new to Python programming and would appreciate some help to a problem
I have a problem finding references to this subject and would appreciate some help.
I'm a newbie in Spring Batch, and I would appreciate some help to resolve
I would really appreciate it if some of you could help optimize my tables,
I am pretty new to Patterns and some help would be great. I am

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.