Merge "Add caching reverse proxy for pypi mirror"

This commit is contained in:
Jenkins 2017-07-13 20:31:47 +00:00 committed by Gerrit Code Review
commit 2524aba92e
1 changed files with 5 additions and 0 deletions

View File

@ -134,6 +134,11 @@ NameVirtualHost <%= @vhost_name %>:8081
CacheEnable disk "/tarballs"
ProxyPass "/tarballs/" "https://tarballs.openstack.org/"
ProxyPassReverse "/tarballs/" "https://tarballs.openstack.org/"
# pypi
CacheEnable disk "/pypi"
ProxyPass "/pypi/" "http://mirror.dfw.rax.openstack.org/pypi/"
ProxyPassReverse "/pypi/" "http://mirror.dfw.rax.openstack.org/pypi/"
</VirtualHost>
<VirtualHost <%= @vhost_name %>:8081>