-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Wrong URL for File Load/Download Buttons through NGINX Reverse Proxy Subfolder #1391
Comments
Hi @mirage335, It looks like there is some information missing from your bug report that will be needed in order to solve the problem. Please take a look at the Contribution Guidelines which will provide you with a template to fill out here so that your bug report is ready to be investigated (I promise I'll go away then too!). If you did not intend to report a bug, please take special note of the title format to use as described in the Contribution Guidelines. I'm marking this one now as needing some more information. Please understand that if you do not provide that information within the next two weeks (until 2016-07-10 16:20) I'll close this ticket so it doesn't clutter the bug tracker. This is nothing personal, so please just be considerate and help the maintainers solve this problem quickly by following the guidelines linked above. Remember, the less time the devs have to spend running after information on tickets, the more time they have to actually solve problems and add awesome new features. Thank you! Best regards, PS: I'm just an automated script, not a human being, so don't expect any replies from me :) Your ticket is read by humans too, I'm just not one of them. |
At first I couldn't reproduce this at all. http nginx -> OctoPrint, http nginx -> http haproxy -> OctoPrint, https nginx -> OctoPrint, https nginx -> http haproxy -> OctoPrint, all worked flawlessly. Then I tried https nginx -> https haproxy -> OctoPrint and finally could reproduce. The problem is actually two fold:
Problem number 1 I've solved in 0376bc4. Problem number 2 needs to be solved in the intermediary reverse proxy, by ensuring an
should do it. Since only problem number 1 was actually an OctoPrint problem, I'm marking this one as solved now. The fix mentioned above is already in the |
Can now confirm problem solved. Much thanks! |
Merged to master and released with 1.2.14 |
Awesome, thanks for everything! |
What were you doing?
Clicking the Load/Download buttons.
When NGINX is used as a reverse proxy, redirecting a subfolder like /octoprint to an octopi installation, the links provided by file load/download buttons are wrong.
This is posted when the reverse proxy is used to redirect a subfolder.
https://local:port/octoprint/https,https://local:port/octoprint/downloads/files/local/file.gcode
This posted when the reverse proxy is used with a root directory (ie. location "/"), or when the octopi server is used directly.
https://local:port/octoprint/downloads/files/local/file.gcode
What did you expect to happen?
Actually Load/Download files.
What happened instead?
Nothing, due to wrong URL POST.
Branch & Commit or Version of OctoPrint
Version: 1.2.13 (master branch)
Printer model & used firmware incl. version
TazStiff, Marlin Firmware
Browser and Version of Browser, Operating System running Browser
Firefox.
Link to octoprint.log
Nothing notable.
Link to contents of terminal tab or serial.log
Nothing notable.
Link to contents of Javascript console in the browser
POST
XHR
https://mirage335-base.soaringindustries.space:7740/octoprint/https,https://mirage335-base.soaringindustries.space:7740/octoprint/api/files/local/diagrid_s_20160618-122805_1.2.10-dev.gcode [HTTP/1.1 404 NOT FOUND 231ms]
Screenshot(s) showing the problem:
Revelant portions of my NGINX configuration are as follows, based on the example at https://github.com/foosel/OctoPrint/wiki/Reverse-proxy-configuration-examples .
I have read the FAQ.
The text was updated successfully, but these errors were encountered: