Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many redirects #113

Open
erezlevanon opened this issue Jun 13, 2020 · 0 comments
Open

Too many redirects #113

erezlevanon opened this issue Jun 13, 2020 · 0 comments
Labels

Comments

@erezlevanon
Copy link

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
@seocam seocam added the bug label Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants