#
# Apache configuration file for pulp web services and repositories
#
AddType application/x-pkcs7-crl .crl
AddType application/x-x509-ca-cert .crt
# -- Yum Repositories ---------
#
# This Location block replaces an `Alias` directive. In order to maintain
# backwards compatibility with existing Yum repository configurations, this
# block rewrites all requests to `/pulp/repos/` to the location of the WSGI
# application, content.wsgi, provided by the Pulp platform. The content.wsgi
# application adds support for downloading content on-demand.
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.+/pulp/repos/)(.*) /pulp2/content/var/www/pub/yum/https/repos/$2 [DPI]
RewriteCond %{HTTPS} off
RewriteRule (.+/pulp/repos/)(.*) /pulp2/content/var/www/pub/yum/http/repos/$2 [DPI]
# -- HTTPS Exports
Alias /pulp/exports /var/www/pub/yum/https/exports
WSGIAccessScript /usr/share/pulp/wsgi/repo_auth.wsgi
SSLRequireSSL
SSLVerifyClient require
SSLVerifyDepth 9
SSLOptions +StdEnvVars +ExportCertData +FakeBasicAuth
Options FollowSymLinks Indexes
# -- HTTP Repositories ---------
Options FollowSymLinks Indexes
# -- GPG Keys -------------------
Alias /pulp/gpg /var/www/pub/gpg
Options FollowSymLinks Indexes