django-revproxy icon indicating copy to clipboard operation
django-revproxy copied to clipboard

Too many redirects

Open erezlevanon opened this issue 4 years ago • 0 comments

I'm running a django server on a reaspberry pi.

I have a service (transmission-daemon) listening on port 9091 and I want it to be accessible through the django server (as a url path) . After configuration when trying to access the url path the i get ERR_TOO_MANY_REDIRECTS error in my browser, and looking at the logs it does seems like it repeatedly redirects. when i used nginx for this proxy set-up it worked fine.

django-revproxy version: 0.10.0 django version: 3.0.4 python version: 3.8

viewes.py:

class TransmissionProxy(ProxyView):
    upstream = 'http://X.X.X.X:9091'

urls.py

urlpatterns = [
    path('admin/', admin.site.urls),
    url(r'^transmission(?P<path>.*)$', views.TransmissionProxy.as_view(), name="proxy_test"),
    url(r'^$', views.Home.as_view(), name='home'),
]

django logs:

ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:27] "GET /transmission/ HTTP/1.1" 301 31
ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:37] "GET /transmission/web/ HTTP/1.1" 301 31
ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:37] "GET /transmission/web/ HTTP/1.1" 301 31
ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:37] "GET /transmission/web/ HTTP/1.1" 301 31
ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:38] "GET /transmission/web/ HTTP/1.1" 301 31
ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:38] "GET /transmission/web/ HTTP/1.1" 301 31
ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:38] "GET /transmission/web/ HTTP/1.1" 301 31
ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:38] "GET /transmission/web/ HTTP/1.1" 301 31
ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:38] "GET /transmission/web/ HTTP/1.1" 301 31
ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:38] "GET /transmission/web/ HTTP/1.1" 301 31
ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:38] "GET /transmission/web/ HTTP/1.1" 301 31
ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:38] "GET /transmission/web/ HTTP/1.1" 301 31
ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:38] "GET /transmission/web/ HTTP/1.1" 301 31
ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:38] "GET /transmission/web/ HTTP/1.1" 301 31
ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:38] "GET /transmission/web/ HTTP/1.1" 301 31
ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:38] "GET /transmission/web/ HTTP/1.1" 301 31
ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:39] "GET /transmission/web/ HTTP/1.1" 301 31
ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:39] "GET /transmission/web/ HTTP/1.1" 301 31
ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:39] "GET /transmission/web/ HTTP/1.1" 301 31
ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:39] "GET /transmission/web/ HTTP/1.1" 301 31
ProxyView created
Normalizing response headers
Checking for invalid cookies
[13/Jun/2020 10:41:39] "GET /transmission/web/ HTTP/1.1" 301 31

erezlevanon avatar Jun 13 '20 08:06 erezlevanon