Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. links are not reflecting rails_relative_url_roo

links are not reflecting rails_relative_url_roo

Added by Velsankar Balasubramanian over 10 years ago

Hi,

My openproject application is served from the following URL: http://oneoncloud.com/dfoe_projects

In configuration.yml, rails_relative_url_root is “/dfoe_projects”

When I go to http://oneoncloud.com/dfoe_projects the landing page of openproject appears properly. But if I click on any link for e.g Sign in, nothing happens. This is because the URLs in the link are with the prefix of http://oneoncloud.com and not with http://oneoncloud.com/dfoe_projects.

Could someone point out what is going wrong here? I am new to ruby on rails.

Thanks,
Vel


Replies (5)

RE: links are not reflecting rails_relative_url_roo - Added by Christian Ratz over 10 years ago

Hi Velsankar,

did you made a server restart after you added rails_relative_url_root to the configuration.yml?

Best
Ratzi

RE: links are not reflecting rails_relative_url_roo - Added by Christian Ratz over 10 years ago

I mean restart of the webserver!

RE: links are not reflecting rails_relative_url_roo - Added by Velsankar Balasubramanian over 10 years ago

Hi Ratzi,

Thank you for your response.

The directory structure is like following:

- webapps/dfoe_projects
- bin
- tmp
- openproject
- gems
- nginx
- hello_world

Now in command line I changed the directory to dfoe_projects and executed bin/restart. Does this do a webserver restart?

The openproject logo and other images which were appearing before restart is not appearing now.

Thanks,
Vel

RE: links are not reflecting rails_relative_url_roo - Added by Christian Ratz over 10 years ago

Hi again,

you can start / stop / restart the nginx webserver with this commands:

sudo service nginx stop
sudo service nginx start
sudo service nginx restart

Are you using Phusion Passenger?

Best
Ratzi

RE: links are not reflecting rails_relative_url_roo - Added by Velsankar Balasubramanian over 10 years ago

Hi Ratzi,

WebFaction is our host provider and I am executing these commands in putty.

Do not have sudo privilege. Executed “service nginx restart” under directory dfoe_projects and got the following message:

/etc/sysconfig/nginx: line 1: ulimit: open files: cannot modify limit: Operation not permitted
nginx: [alert] could not open error log file: open() “/var/log/nginx/error.log” failed (13: Permission denied)
2014/10/24 10:05:22 [emerg] 50511#0: open() “/etc/nginx/nginx.conf” failed (13: Permission denied)
nginx: configuration file /etc/nginx/nginx.conf test failed

Thanks,
Vel

  • (1 - 5/5)
Loading...