# Apache configuration file for pulp web services and repositories # # Copyright © 2010 Red Hat, Inc. # # This software is licensed to you under the GNU General Public License, # version 2 (GPLv2). There is NO WARRANTY for this software, express or # implied, including the implied warranties of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 # along with this software; if not, see # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. # # Red Hat trademarks are not licensed under GPLv2. No permission is # granted to use or replicate Red Hat trademarks that are incorporated # in this software or its documentation. 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/)(.*) /pulp/content/var/www/pub/yum/https/repos/$2 [DPI] RewriteCond %{HTTPS} off RewriteRule (.+/pulp/repos/)(.*) /pulp/content/var/www/pub/yum/http/repos/$2 [DPI] # The following rules rewrite requests to show repoview content if it exists. RewriteCond %{HTTPS} on RewriteCond %{REQUEST_URI} (.*/pulp/repos/)(.*) RewriteCond "/var/www/pub/yum/https/repos/%2repoview/index.html" -f RewriteRule "^(.+)" "%{REQUEST_URI}repoview/index.html" [R] RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} (.*/pulp/repos/)(.*) RewriteCond "/var/www/pub/yum/http/repos/%2repoview/index.html" -f RewriteRule "^(.+)" "%{REQUEST_URI}repoview/index.html" [R] # -- HTTPS Exports Alias /pulp/exports /var/www/pub/yum/https/exports WSGIAccessScript /usr/share/pulp/wsgi/repo_auth.wsgi SSLRequireSSL SSLVerifyClient optional SSLVerifyDepth 9 SSLOptions +StdEnvVars +ExportCertData +FakeBasicAuth Options FollowSymLinks Indexes # -- HTTP Repositories --------- Options FollowSymLinks Indexes # -- HTTPS ISOS Alias /pulp/isos /var/www/pub/https/isos WSGIAccessScript /usr/share/pulp/wsgi/repo_auth.wsgi SSLRequireSSL SSLVerifyClient optional_no_ca SSLVerifyDepth 2 SSLOptions +StdEnvVars +ExportCertData +FakeBasicAuth Options FollowSymLinks Indexes # --- HTTP ISOS Options FollowSymLinks Indexes # -- GPG Keys ------------------- Alias /pulp/gpg /var/www/pub/gpg Options FollowSymLinks Indexes