为什么我通过代理使用GitLab时,界面没有布局

为什么我通过代理使用GitLab时,界面没有布局,gitlab,reverse-proxy,http-proxy,Gitlab,Reverse Proxy,Http Proxy,为什么当我通过代理使用GitLab时,界面没有布局 Apache配置文件: 由于您使用的是反向代理,请参见: 我不知道您的apache代理权限是如何配置的。我假设您使用的是如下内容: 您可以定义代理在“虚拟子文件夹”中的行为方式,请尝试以下操作: 请注意,GitLab必须配置为在子文件夹中运行。 是否包括以下说明: # Relative url support # Uncomment and customize the last line to run in a non-root path #

为什么当我通过代理使用GitLab时,界面没有布局

Apache配置文件:


由于您使用的是反向代理,请参见:

我不知道您的apache代理权限是如何配置的。我假设您使用的是如下内容:

您可以定义代理在“虚拟子文件夹”中的行为方式,请尝试以下操作:

请注意,GitLab必须配置为在子文件夹中运行。
是否包括以下说明:

# Relative url support
# Uncomment and customize the last line to run in a non-root path
# WARNING: We recommend creating a FQDN to host GitLab in a root path instead of this.
# Note that following settings need to be changed for this to work.
# 1) In your application.rb file: config.relative_url_root = "/gitlab"
# 2) In your gitlab.yml file: relative_url_root: /gitlab
# 3) In your unicorn.rb: ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab"
# 4) In ../gitlab-shell/config.yml: gitlab_url: "http://127.0.0.1/gitlab"
# 5) In lib/support/nginx/gitlab : do not use asset gzipping, remove block starting with "location ~ ^/(assets)/"
#
# To update the path, run: sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
#
# config.relative_url_root = "/gitlab"

@archi_sova您是否更改了gitlab.yml中的相对根url?不,我没有改变任何事情。这里是这样的:,但这是不起作用的(代理):@archi_sova我已经完成了我的任务answer@archi_sova好啊不过,我不确定在不使用子文件夹的情况下执行反向代理。
ProxyPass /gitlab http://127.0.0.1:8880
ProxyPassReverse /gitlab http://127.0.0.1:8880
# Relative url support
# Uncomment and customize the last line to run in a non-root path
# WARNING: We recommend creating a FQDN to host GitLab in a root path instead of this.
# Note that following settings need to be changed for this to work.
# 1) In your application.rb file: config.relative_url_root = "/gitlab"
# 2) In your gitlab.yml file: relative_url_root: /gitlab
# 3) In your unicorn.rb: ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab"
# 4) In ../gitlab-shell/config.yml: gitlab_url: "http://127.0.0.1/gitlab"
# 5) In lib/support/nginx/gitlab : do not use asset gzipping, remove block starting with "location ~ ^/(assets)/"
#
# To update the path, run: sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
#
# config.relative_url_root = "/gitlab"