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. rails_relative_url_root not working

rails_relative_url_root not working

Added by Jesse Godfroy over 6 years ago

I installed openproject 8.0 manually and I would like to have it be reachable with https://domain/openproject.

I've changed the setting in config/configuration.yml, removed the frontends, performed npm install and setup the databases, but going to https://domain/openproject still doesn't work.

Is there more to it? What else do I need to change?


Replies (2)

RE: rails_relative_url_root not working - Added by Jesse Godfroy over 6 years ago

I figured this out by following this guide: https://www.phusionpassenger.com/library/deploy/apache/deploy/ruby/#deploying-an-app-to-a-sub-uri

I had to add the Alias command to my Apache VirtualHost file.

    Alias /openproject /home/openproject/openproject-ce/public
    <Location /openproject>
        PassengerBaseURI /openproject
        PassengerAppRoot /home/openproject/openproject-ce/
    </Location>

RE: RE: rails_relative_url_root not working - Added by Tim Baker about 6 years ago

Hi Jesse,

I'm trying to do exactly as you are and install OpenProject in a subdirectory.  OP is in a docker container and reverse proxied by nginx which works fine for other apache sites on the internal Docker network.

Like you, I set the environmental parameters for the subdrectory, namely /openproject and the site comes up but is missing the icons and fonts.  This is because the fonts are missing the /openproject directory in their URI.

I've tried your solution but no joy.  Below is the standard Apache conf for OpenProject 8.0.  As you can see, it just proxies everything into the backend.

<VirtualHost *:80>
  ServerName _default_
  DocumentRoot /app/public

  ProxyRequests off

  <Location />
    ProxyPass http://127.0.0.1:8080/ retry=0
    ProxyPassReverse http://127.0.0.1:8080/
  </Location>
</VirtualHost>

I can't think what to do and I don't want to give up.  If you could share your apache config, that would be a huge help!

Cheers!

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