Gitlab Omnibus最新版本| Apache上的子页面
我正在成功地使用最新的GitLab Omnibus包。现在我正尝试将它作为Apache的子页面使用,这样我就可以运行Gitlab旁边的其他网页 我成功地使用了Apache,但我无法访问任何其他网站(403) 安装Gitlab: 外部url“” nginx=false nginx user=www数据 端口8181 Apache vhost:Gitlab Omnibus最新版本| Apache上的子页面,apache,gitlab,reverse-proxy,subdirectory,Apache,Gitlab,Reverse Proxy,Subdirectory,我正在成功地使用最新的GitLab Omnibus包。现在我正尝试将它作为Apache的子页面使用,这样我就可以运行Gitlab旁边的其他网页 我成功地使用了Apache,但我无法访问任何其他网站(403) 安装Gitlab: 外部url“” nginx=false nginx user=www数据 端口8181 Apache vhost: <VirtualHost *:80> ServerName server ServerSignature Off ProxyPre
<VirtualHost *:80>
ServerName server
ServerSignature Off
ProxyPreserveHost On
AllowEncodedSlashes NoDecode
RewriteEngine on
<Location /gitlab>
ProxyPassReverse http://127.0.0.1:8181
ProxyPassReverse http://server/gitlab
</Location>
RewriteEngine on
#Forward all requests to gitlab-workhorse except existing files like error documents
#RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f [OR]
#RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} ^/uploads/.*
RewriteRule ^(.*)gitlab(.*)$ http://127.0.0.1:8181%{REQUEST_URI} [P,QSA,NE]
# needed for downloading attachments
DocumentRoot /opt/gitlab/embedded/service/gitlab-rails/public
ErrorLog /var/log/apache2/oldgit_error.log
CustomLog /var/log/apache2/oldgit_forwarded.log common_forwarded
CustomLog /var/log/apache2/oldgit_access.log combined env=!dontlog
</VirtualHost>
服务器名服务器
服务器签名关闭
代理主机
AllowEncodeDSL节点代码
重新启动发动机
ProxyPassReversehttp://127.0.0.1:8181
ProxyPassReversehttp://server/gitlab
重新启动发动机
#将所有请求转发到gitlab workhorse,但现有文件(如错误文档)除外
#重写cond%{DOCUMENT\u ROOT}/%{REQUEST\u FILENAME}-f[或]
#RewriteCond%{DOCUMENT\u ROOT}/%{REQUEST\u URI}^/uploads/*
重写规则^gitlab(.*)$http://127.0.0.1:8181%{REQUEST_URI}[P,QSA,NE]
#需要下载附件
DocumentRoot/opt/gitlab/embedded/service/gitlab-rails/public
ErrorLog/var/log/apache2/oldgit_error.log
CustomLog/var/log/apache2/oldgit_forwarded.log common_forwarded
CustomLog/var/log/apache2/oldgit_access.log组合环境=!唐特洛
正如您可能认识到的,这是Gitlab CE提供的基本配置文件
Gitlab确实可以按预期工作,但我无法从apache(/var/www/html/{subsite})调用任何其他web端
错误是403
已尝试vhost文件授予所有所需的权限(全部授予),但错误仍然存在
有这种情况的经验吗
德宾8
Gitlab CE(最新版本)
Apache2.4
修改
mod_代理
mod_proxy_http
目标:
服务器/gitlab->应将所有内容传递给gitlab CE
服务器/{subsite}->应该像往常一样由apache处理
我想这可能与重写规则有关,但现在不确定了。嘿,你有没有弄明白这一点?对于gitlab之外的任何东西,都可以获得类似于404的东西。