Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !2162

Merged
Created Dec 03, 2012 by Administrator@rootOwner

support for running in non-root directory/path (RAILS_RELATIVE_URL_ROOT)

  • Overview 33
  • Commits 1
  • Changes 7

Created by: frohoff

I've made some small changes to more robustly and generically allow running gitlab in non-root context-path (i.e. /gitlab) for hostname (and therefore SSL cert) multitenancy. I've been running it in this configuration with apache+mod_proxy and unicorn at work for a couple weeks and everything seems to work, including links in emails, but it's possible there's some darker corners of the app were missed.

I found that in at least some cases executing bundle exec rake assets:clean was required to make sure paths embedded within assets (css urls, etc) were regenerated properly.

Edit: To be clear, this requires that ENV['RAILS_RELATIVE_URL_ROOT'] be specified in config/unicorn.rb, config/environments/*.rb, or elsewhere, as well as a matching "relative_url_root" item in config/gitlab.yml.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: github/fork/frohoff/config-improvements