Project

Profile

Help

Task #1182

closed

Pulp - Story #1150: As a user, I can lazily fetch repositories

Pulp - Story #1180: As a user, I can identify a lazy-loader using server.conf and Pulp will redirect for content it does not have

Update the apache configuration to support Lazy.

Added by bmbouter over 9 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
2.8.0
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Update /etc/httpd/conf.d/pulp_rpm.conf and replace Alias and <Directory/> directives with a <Location/> directive. This causes content GET request to be directed to the /pulp/content endpoint which performs authorization and redirect to the streamer as needed.

Exampple:

# -- HTTPS Repositories ---------
Alias /pulp/repos /var/www/pub/yum/https/repos

<Directory /var/www/pub/yum/https>
    WSGIAccessScript /srv/pulp/repo_auth.wsgi
    SSLRequireSSL
    SSLVerifyClient optional_no_ca
    SSLVerifyDepth 2
    SSLOptions +StdEnvVars +ExportCertData +FakeBasicAuth
    Options FollowSymLinks Indexes
</Directory>

Changed to:

<Location /pulp/repos/>
    RewriteEngine On
    RewriteRule (.+/pulp/repos/)(.+) /pulp/content/var/www/pub/yum/https/repos/$2
    SSLRequireSSL
    SSLVerifyClient optional_no_ca
    SSLVerifyDepth 2
    SSLOptions +StdEnvVars +ExportCertData +FakeBasicAuth
</Location>

Also available in: Atom PDF