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

404 after installation #379

Closed
ransome1 opened this issue May 23, 2019 · 8 comments
Closed

404 after installation #379

ransome1 opened this issue May 23, 2019 · 8 comments

Comments

@ransome1
Copy link

I'm trying to get started with Miniflux on Uberspace. I set up PostgreSQL according to this manual: https://lab.uberspace.de/guide_postgresql.html

I followed with this instruction to set up Miniflux on Uberspace: https://lab.uberspace.de/guide_miniflux.html

The configuration went painless and after the service was set up and Miniflux was running I tried to open it in my browser. I'm receiving a 404 that looks like this:

Bildschirmfoto 2019-05-23 um 23 42 00

It actually doesn't look like a 404 page that belongs to the server, so this page might come out of the Miniflux application.

Can anybody tell me how I can figure out what the problem seems to be?

Your help is much appreciated!

@fguillot
Copy link
Member

I don't know anything about Uberspace, but you might need to check the BASE_URL parameter.

@katomaso
Copy link

Hi, I've got the same problem. And yes, it is related to BASE_URL. Could you share more details about why this could be happening? My BASE_URL parses fine - miniflux starts without any problems. But when curl http://127.0.0.1:8081 I get 404 page not found. What can be in BASE_URL so it works?

@katomaso
Copy link

katomaso commented Oct 12, 2020

If I remove /path part from the BASE_URL then it works. I am trying to find out where in code it might be failing but it might take a long time for me. Could you look into it @fguillot please?

@katomaso
Copy link

katomaso commented Oct 12, 2020

Adding prefix of config.Opts.BasePath() to static routes definition starting at https://github.com/miniflux/miniflux/blob/master/ui/ui.go#L29 and going five lines further would fix it? Please

@wzzrd
Copy link

wzzrd commented Oct 12, 2020

Suffering the same problem. Have miniflux on a server on localhost:8080, want to point to it from a Apache reverseproxy on my.hostname.com/flux. Get the same 404. Looking forward to a fix :)

@katomaso
Copy link

Hmm, don't understand - the part of code that I suggested is already there. Can't figure out where the 404 is coming from

@katomaso
Copy link

I got to a point where it works! It was a play of hide'n'seek with "/" in proxy config. But to take things in order

  1. Your BASE_URL config in miniflux can be both example.com/reader and example.com/reader/. It does not matter.
  2. It is necessary to pass full path via proxy (see following nginx configuration)
# force trailing slash
location = /reader {
    return 302 /reader/;
}

location /reader/ {
    # notice missing "/" at the end of proxy pass - that means even /reader/ will be passed to miniflux
    proxy_pass http://localhost:8080;

You can see the full config in yunohost package of miniflux

@ArunYogesh
Copy link

ArunYogesh commented Dec 3, 2020

I faced a similar issue, for some reason the above config kept redirecting me. But the below worked, in case some one else wanders here, like me!

location /rss {
   proxy_pass http://docker_service_name:8080;
   proxy_redirect off;
   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;

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

No branches or pull requests

5 participants