This allows the authentication to work even when used behind a varnish
proxy that eats all other URLs than those directly to the archives.
To make use of this, LOGIN_URL must also be changed to point to
/list/_auth/accounts/login/, and the entry in the community
authentication system must point to /list/_auth/auth_receive/.
urlpatterns += [
# For non-public archives, support login
- url(r'^accounts/login/?$', archives.auth.login),
- url(r'^accounts/logout/?$', archives.auth.logout),
- url(r'^auth_receive/$', archives.auth.auth_receive),
+ url(r'^(?:list/_auth/)?accounts/login/?$', archives.auth.login),
+ url(r'^(?:list/_auth/)?accounts/logout/?$', archives.auth.logout),
+ url(r'^(?:list/_auth/)?auth_receive/$', archives.auth.auth_receive),
]