如下所示,代理端口号后面一定要加斜杠 /
。否则会报类似如下错误:
Reason: DNS lookup failure for: XX:8083user/login
配置文件如下
<VirtualHost *:80>
ProxyPass / http://127.0.0.1:8023/
ProxyPassReverse / http://127.0.0.1:8023/
ServerName 123456.git.yoursite.com
ServerAlias git.yoursite.com github.yoursite.com gitlab.yoursite.com
#errorDocument 404 /404.html
ErrorLog "/path/file-error_log"
CustomLog "/path/file-access_log" combined
</VirtualHost>