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/;
}
}
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/;
}
}