我需要什么 Apache 配置来支持 Artifactory Docker?

我需要什么 Apache 配置来支持 Artifactory Docker?

Artifactory Docker 文档展示了如何将 nginx 配置为反向代理,但是等效的 Apache2 配置是什么?

特别是,以下语句的 apache 等价物是什么,它们是必要的吗?

http://www.jfrog.com/confluence/display/RTF/Docker+Repositories#DockerRepositories-ConfiguringaReverseProxy

答案1

这是 Apache 配置:

<VirtualHost *:443>
        ServerName artprod.company.com 

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        SSLEngine on
        SSLCertificateFile      /etc/ssl/certs/artprod.company.com.pem
        SSLCertificateKeyFile /etc/ssl/private/artprod.company.com.key

        ProxyRequests off
        ProxyPreserveHost on

        ProxyPass / http://artprod.company.com:8080/artifactory/api/docker/<repository key>
        ProxyPassReverse / http://artprod.company.com:8080/artifactory/api/docker/<repository key>
</VirtualHost>

相关内容