我试图将我的神器安装放在Apache反向代理之后。我这样做有几个原因:
我管理了前两个,但最后一步是逃避我。
我基本上想要我的网址https://artifactory.domain.tld而不是https://artifactory.domain.tld/artifactory
这是我的vhost配置:
<VirtualHost _default_:443>
SSLEngine on
Protocol https
ServerName servername:443
SSLCertificateFile "${SRVROOT}/conf/ssl/server.cer"
SSLCertificateKeyFile "${SRVROOT}/conf/ssl/server.key"
SSLProxyEngine On
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8081/
ProxyPassReverse / http://127.0.0.1:8081/
</virtualhost>
我在Windows上运行,Apache版本2.4和Artifactory版本3.3.0
任何帮助或指示。
答案 0 :(得分:0)
只需将ProxyPass
指令修改为以下内容:
ProxyPass / http://127.0.0.1:8081/artifactory/
ProxyPassReverse / http://127.0.0.1:8081/artifactory/
答案 1 :(得分:0)
试试这个:
ProxyPass / http://127.0.0.1:8081/artifactory/api/docker/<repository key>
ProxyPassReverse / http://127.0.0.1:8081/artifactory/api/docker/<repository key>