[Catalog-sig] pypi.python.org configuration

drkjam drkjam at gmail.com
Thu Feb 23 08:13:49 CET 2012

On 22 Feb 2012, at 23:27, Richard Jones <richard at python.org> wrote:

> On 23 February 2012 07:04, drkjam <drkjam at gmail.com> wrote:
>> Would it be possible to get hold of a sanitized version of the Apache config running pypi.python.org, in particular the Apache mod_rewrite rules?
> PyPI doesn't run behind Apache any more; Martin moved it to
> nginx/uwsgi to address Apache performance issues we were running into.
> There's only one rewrite in the current configuration for pypi.python.org:
>        rewrite ^/$ $scheme://pypi.python.org/pypi redirect;
> Was there something specific you wanted to know?
>    Richard

Ah, good to know, thanks.

I noticed (and replicated) the behaviour of the rewrite rule you mention. Also I've observed that URLs to packages with dashes in their names get redirected to ones where these have been replaced by underscores e.g. cx-Oracle -> cx_Oracle. I've just released a modified clone (chishop, Apache/mod_wsgi) for internal use at a company and ran into this one.

Are there any other URL mods lurking that I should be aware of to be added to my implementation?

More information about the Catalog-SIG mailing list