Welcome! Log In Create A New Profile

Advanced

nginx reverse proxy webdav passthrough

Posted by BullerTech 
nginx reverse proxy webdav passthrough
May 09, 2015 04:44PM
I have an iis webserver (on the same network as an nginx webserver server) that has both an https website on it and handles my webdav. I have managed to use a reverse proxy on the nginx server to get MYDOMAIN.com to go to the iis webserver and the iis https website is working externally, but I can’t figure out how to get webdav to pass through as well, so it is not working. Below is my config file for MYDOMAIN.com. Any ideas on how I can get webdav to pass through to the iis server?

server {
listen 80;
server_name MYDOMAIN.com;
location / {
proxy_pass http://192.168.2.50:80;
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_redirect off;
}
}

server {
listen 443 ssl;
server_name MYDOMAIN.com:443;

ssl_certificate btc.pem;
ssl_certificate_key btc.key;

ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;

ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

location / {
proxy_pass https://192.168.2.50/;
}
}



Edited 3 time(s). Last edit at 05/09/2015 04:54PM by BullerTech.
Re: nginx reverse proxy webdav passthrough
May 09, 2015 05:30PM
Maybe this helps:

http://exist.2174344.n4.nabble.com/Large-WebDAV-put-fails-when-done-through-nginx-proxy-td3574374.html
http://www.agoragames.com/blog/2009/03/

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: nginx reverse proxy webdav passthrough
May 09, 2015 05:36PM
Thank you for your links. Not exactly what I was looking for though. I think I am just looking for some code to put in my configuration file that passes through everything that has to do with webdav through to my ii7 webdav server. I don't fully understand why webdav is not working when the SSL website is already working and webdav uses the same ports 80 and 443. I am wondering if webdav uses a different path structure than http://MYDOMAIN.com or https://MYDOMAIN.com so it is not getting passed through by that condition...



Edited 3 time(s). Last edit at 05/09/2015 05:39PM by BullerTech.
Re: nginx reverse proxy webdav passthrough
May 10, 2015 02:59AM
That might very well be the case, if for some reason a http link is rewritten to https (or the other way around) due to a deep link existing in one resource but not the other you can 'create' these issues. It might be better to also force https and not allow mixed content.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: nginx reverse proxy webdav passthrough
May 10, 2015 03:02AM
i am hoping webdav can be opened wide open on the nginx server and pass everything to the iis server, and the iis server can handle everything.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 161
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready