Can not MOVE or COPY file with HTTPS reverse proxy
See original GitHub issueI can not move, rename, copy any file. the route is : client ==HTTPS=> nginx reserve proxy ==HTTP=>wsgidav (cheroot)
However, when I skip https reserve proxy client ==HTTP/HTTPS=>wsgidav (cheroot) everything is OK
Finally I found the problem.
When I use https reserve proxy, the environ[“HTTP_DESTINATION”] is “https://abc.com/file” and the scheme is https
However the environ[“wsgi.url_scheme”] is http , just because nginx access wsgidav using http
In this line of code #L942
if destScheme and destScheme.lower() != environ["wsgi.url_scheme"].lower():
self._fail(
HTTP_BAD_GATEWAY, "Source and destination must have the same scheme."
)
it will check destination scheme and wsgi_url scheme and there is no doubt that it will fail.
I just simplify delete this line code and everying be OK.
So,this line code should be deleted ?
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Developers - Can not MOVE or COPY file with HTTPS reverse proxy -
I can not move, rename, copy any file. the route is : client ==HTTPS=> nginx reserve proxy ==HTTP=>wsgidav (cheroot). However, when I skip...
Read more >Web Client File Upload Fails Outside of Internal Network due ...
I've been using the reverse proxy for several years and works fine. I have it setup to forward https requests for the Cerberus...
Read more >Can not upload big files with Nginx (Reverse proxy+SSL ...
I had the same problem. The answer of Michael Härtl is correct. In my case this was the setup that did the trick:...
Read more >IIS acting as reverse proxy: Where the problems start
Go to the Inbound Rules section in URL Rewrite. This section should just contain one inbound rule, called 'Reverse Proxy Inbound Rule 1'....
Read more >How To Set Up a Reverse Proxy (Step-By-Step for Nginx ...
A reverse proxy like HAProxy can add basic HTTP access authentication to a web server that doesn't have it enabled. You can also...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I configured my nginx reverse proxy like this and it works:
Thanks @Lobstros !