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

Site doesn't work at non-root URL #605

Open
brownksc opened this issue Apr 21, 2024 · 0 comments
Open

Site doesn't work at non-root URL #605

brownksc opened this issue Apr 21, 2024 · 0 comments

Comments

@brownksc
Copy link

brownksc commented Apr 21, 2024

Mediatracker is working fine if I set up a reverse proxy in nginx to host it at the root directory (e.g., example.com) but not if I try to host it at a different directory (e.g., example.com/mediatracker).

This nginx config works as expected:

location / {
            proxy_pass http://127.0.0.1:7481;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
        }

This one does not:

location /mediatracker/ {
            proxy_pass http://127.0.0.1:7481/;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
        }

I tried this same config but with an Apache container (https://hub.docker.com/_/httpd):

docker run -dit --name my-apache-app -p 7481:80 -v "$PWD":/usr/local/apache2/htdocs/ httpd:2.4

And I'm able to access the Apache container's website with both nginx configs shown above. For some reason though, with mediatracker, only the first config works.

Any ideas?

Update: Just tried configuring a reverse proxy in Apache instead of NGINX. Same exact result, with root URL working fine and then mediatracker failing to display if I set it to some other URL. (/test/ for example).

Mediatracker will display a blank white page with the <title> tag set to 'Media Tracker' when this error occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant