evan-buss / openbooks

Search and Download eBooks
https://evan-buss.github.io/openbooks/
MIT License
1.77k stars 57 forks source link

404 Page not found error #162

Closed goaliedude3919 closed 4 months ago

goaliedude3919 commented 4 months ago

I just tried installing this in Docker and I get a "404 Page not found" error when trying to access http://: or http://:/openbooks. I'm using the following docker compose file:

version: "3.9" services: openbooks: image: evanbuss/openbooks:latest command:


The only logs I could find don't have any useful information.

OpenBooks | 2024/02/29 05:21:09 SERVER: Base Path: /openbooks/ OpenBooks | 2024/02/29 05:21:09 SERVER: OpenBooks is listening on port 80 OpenBooks | 2024/02/29 05:21:09 SERVER: Download Directory: /books OpenBooks | 2024/02/29 05:21:09 SERVER: Open http://localhost:80/openbooks/ in your browser.

evan-buss commented 4 months ago

Remove the BASE_PATH option if you want to access it at the root path of /.

Try adding a trailing slash as well to your browser url at "/openbooks/"

goaliedude3919 commented 4 months ago

Looks like it was as simple as not having the trailing slash in the URL, thanks!