Apache2根据URI路径转发到ip:port

时间:2018-08-11 01:30:21

标签: apache proxy apache2 forward

我正在尝试将 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

0 个答案:

没有答案