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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:19:43+00:00 2026-06-03T12:19:43+00:00

We are setting up a nginx web server to allow /suburi access in our

  • 0

We are setting up a nginx web server to allow /suburi access in our rails 3.1 app (such as access URL: http://www.railapp.com/subdomain). The subrui name here is byop. Our rails document root subdir is at /var/www/. The suburi byop is at /var/www/byop. Here is what we did after successful rails deployment:

  1. Setup the nginx.conf:

    server {
    listen 80;
    server_name 154.248.209.181;
    root /var/www/;
    passenger_enabled on;
    rails_env production;
    passenger_base_uri /byop;
    }

  2. Create symbolic link under /var/www as following:

    ln -s /var/www/byop/current/public /var/www/byop

nginx was stop and restarted. However 403 Forbidden page shows up for http://154.248.209.181/byop

We checked the symbolic link under /var/www and there is no link listed (only the byop subdir). Here is the output of ls -li:

ubuntu@ip-10-152-95-60:/var/www$ ls -li
total 4
9296 drwxrwsr-x 4 ubuntu www-data 4096 May  6 03:12 byop

What’s wrong with our setup above? Thanks so much.

  • 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-03T12:19:45+00:00Added an answer on June 3, 2026 at 12:19 pm

    The problem we found is with the step 2 to create the symlink. The name of the subdir and the name of symbolic link are the same. After using different symlink name, the problem solved. Here is the working copy:

    1. Setup the nginx.conf:
    
    server { 
        listen 80; 
        server_name 154.248.209.181; 
        root /var/www/; 
        passenger_enabled on; 
        rails_env production; 
        passenger_base_uri /by; 
     }
    
    2. Create symlink under /var/www as following:
    
    ln -s /var/www/byop/current/public /var/www/by
    

    Then http://154.248.209.181/by brings up the page.

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

Sidebar

Related Questions

I am setting up an infrastructure where I have an nginx web server configured
I'm interested in setting up a Socket.IO server + Rails web application. However, as
I am setting up a nginx server. I create a user nginx for running
I'm setting up a new Ubuntu server running nginx, and I'm trying to run
Trying to setting an image server, I put them on nginx for speed. I'm
My cofounder and I are setting up our server for our startup. We're using
Setting up an integration server, I’m in doubt about the best approach regarding using
Setting the scene: My asp.net web application carries a version number which is incremented
Setting up email details in web.config - but no email is being sent! <appSettings>
I have a Python Tornado server sitting behind a nginx frontend. Every now and

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.