Open link in a new tab

Content

Expand project menu

links are not reflecting rails_relative_url_roo

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

Message actions

Hi Velsankar,

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

Best
Ratzi

Message actions

I mean restart of the webserver!

Message actions

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

Message actions

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

Message actions

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