Task #2914
Updated by bizhang over 7 years ago
Need a new Apache configuration for serving all content. This need to include the rewrite rules found in the RPM httpd configuration that convert signed URLs to plain URLs. This configuration needs to be installed by an Ansible task. The ContentView needs to be updated to detect if XSEND can/should be used to stream bits. The pulp2 code[0] to add Perhaps an: <pre> XSEND = True/False </pre> in the <code>X-SENDFILE</code> header should also be ported. It should be noted that nginx does not use the <code>X-SENDFILE</code> header, but rather the <code>X-Accel-Redirect</code> header. It would be good to support either of these servers. Prehaps a default property in settings.py and a user config property in server.yaml that defaults to None, and can be set to None, apache, or nginx [0] https://github.com/pulp/pulp/blob/96db0a2eefe12683cd439d9a00e57a4da0876dbc/server/pulp/server/content/web/views.py#L74 server.yml.