python / psf-salt

PSF infrastructure configuration
MIT License
111 stars 57 forks source link

Fix /ftp redirect on docs.python.org for archives #312

Closed encukou closed 1 year ago

encukou commented 1 year ago

The ^~ modifier makes this rule take priority priority over regex (specifically the pdf|zip|epub|bz2 regex above), see https://nginx.org/en/docs/http/ngx_http_core_module.html#location

See: https://github.com/python/cpython/issues/95290

encukou commented 1 year ago

I haven't tested this -- I don't have the setup for that.

ewdurbin commented 1 year ago

based on tossing it around in https://nginx.viraptor.info looks good.