我正在尝试将 mydomain.com/git 映射到 localhost:7000 (gitlab docker映像)。
4个小时以来,我在apache配置中尝试了很多组合,但没有成功。
http://localhost:7000 和 mydomain.com 正常运行,没问题。
有一次我在调用 mydomain.com/git 时获得了响应,但在需要的时候将其重定向到 mydomain.com/users/sign_in 已使其 mydomain.com/ git / users / sign_in 正常运行。
我在/etc/apache2/default-ssl.conf
中得到了这个ProxyPreserveHost On
ProxyPass /git http://localhost:7000
ProxyPassReverse /git http://localhost:7000