Skip to content
Discussion options

You must be logged in to vote

Please refer to https://github.com/plan-player-analytics/Plan/wiki/External-Webserver-use:-Reverse-proxy#nginx-reverse-proxy and nginx documentation.

Any location should end with / if using it as a reverse proxy directory.

If you use subdirectory the proxy_pass needs to end with / as well - eg

server {
    listen 80;
    server_name scot-survivor.space;

    location /plan/ {
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_pass http://127.0.0.1:8804/;
    }
}

Your question is confusing me since you want to direct traffic to Plan webserver but also serve static files for Plan even though Plan webserver serves those.

nginx has try_files d…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Scot-Survivor
Comment options

Answer selected by AuroraLS3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants