Skip to content

Commit

Permalink
Serve index.json for directory requests
Browse files Browse the repository at this point in the history
The PyPI API requires serving json, since we are serving via simple
files, we need to put this json in an index, and index.html would return
the wrong `Content-Type`.
  • Loading branch information
asmacdo committed Jun 15, 2016
1 parent 93f56a1 commit 5dde068
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/etc/httpd/conf.d/pulp_python.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ Alias /pulp/python /var/www/pub/python/

<Directory /var/www/pub/python>
Options FollowSymLinks Indexes
DirectoryIndex index.html index.json
</Directory>

0 comments on commit 5dde068

Please sign in to comment.