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
  • Issues
  • #8421

Closed
Open
Created Dec 01, 2014 by Administrator@rootOwner

Gitlab relative URL under apache proxy pass

Created by: ghost

I am running gitlab inside a docker which is mapped to post 8880 on my localhost. So I can access it using the URL http://localhost:8880/

But I have used apache proxy pass to create following mapping http://localhost:8880/ ------> http://localhost/gitlab

So that my users can access gitlab through http://localhost/gitlab. Everything seems to be working fine but the problem arises when the page is rendered. All the link in the page generated by Gitlab uses relative url like

/assets/favicon-baaa14bade1248aa6165e9d34e7d83c0.ico /assets/application-296ff8a0c87574e522a2911224b5350b.css /assets/print-1df3ea9b8ff148a6745321899e0cb213.css

This causes apache to redirect them to http://localhost/assets/.... which results in 404 Error which is obvious. The link should have generated as /gitlab/assets/.... so that apache can map them correctly to http://localhost/gitlab/assets....

I have tried using the Apache rewrite module, Nginx rewrite module but none of them worked. Is there anyway I can change the relative URL generated by gitlab?

Assignee
Assign to
Time tracking