Skip to content

How to setup with multiple reversed proxies? #3561

Closed Answered by zanzlender
zanzlender asked this question in Self-Hosted Support
Discussion options

You must be logged in to vote

I solved it. It had a couple of problems, but @ruslandoga you helped me go in the right direction 💪

First of the location url has to end with a / so that it recognizes like a directory and not a file.

location /analytics/plausible/ {  # forgot trailing slash 
       rewrite ^/analytics/plausible/(.*) /$1 break;  # added rewrite to chop of /analytics/plausible part
       proxy_pass http://127.0.0.1:8000;
       proxy_http_version 1.1;
       proxy_read_timeout 60;
       proxy_redirect off;
       proxy_set_header Upgrade $http_upgrade;
       proxy_cache_bypass $http_upgrade;
       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
       proxy_set_header Host $host;  # this j…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ruslandoga
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by zanzlender
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants