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

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Openproject Docker - how to set prefix? "RAILS_RELATIVE_URL_ROOT=/openproject" or SERVER_PATH_PREFIX=/openproject" don't work

Openproject Docker - how to set prefix? "RAILS_RELATIVE_URL_ROOT=/openproject" or SERVER_PATH_PREFIX=/openproject" don't work

Added by Victor Laza over 7 years ago

Hello,

I am using the Docker image openproject/community:7 and need to make it available via proxy to /openproject and setting ENV variables “RAILS_RELATIVE_URL_ROOT=/openproject” or SERVER_PATH_PREFIX=/openproject" does not work.

How can I achieve this?

Thank you in advance.


Replies (3)

RE: Openproject Docker - how to set prefix? "RAILS_RELATIVE_URL_ROOT=/openproject" or SERVER_PATH_PREFIX=/openproject" don't work - Added by Henrik Voß over 7 years ago

Hi,

same problem. Any ideas?

Best regards,
Henrik

RE: Openproject Docker - how to set prefix? "RAILS_RELATIVE_URL_ROOT=/openproject" or SERVER_PATH_PREFIX=/openproject" don't work - Added by Deleted user about 7 years ago

Hey,

as I read here (https://community.openproject.com/topics/6764) and on other sites, the root path has to be predefined before compiling openproject.

I am struggeling with the same problem as I want to use Openproject docker container behind a nginx reverse proxy.

I would really appreciate it if this path would be made configurable in a future release (e.g. via env. variable to be useable with docker). If the webserver would be separate, this change would be very easy…but the architecture is as it is…

Regards,
Patrick

UPDATE:
I managed it with a workaround: As I use a DynDns domain, I just registered a new host that is pointing to the same IP address. Nginx then uses the “Server {…}” part in the config where the “server_name” equals the domain name.
But that may not be helpful if you want/ have to use only one domain.

RE: Openproject Docker - how to set prefix? "RAILS_RELATIVE_URL_ROOT=/openproject" or SERVER_PATH_PREFIX=/openproject" don't work - Added by Sapna Deraje Radhakrishna over 5 years ago

I was able to make this work ( replace /openproject with your base url) 

  1. in the configuration.yml file add the line 'rails_relative_url_root: "/openproject"'
  2. in the config.ru file, replace the 'map (subdir || '/') do' to 'map '/openproject' do'

build the docker image

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