Welcome! Log In Create A New Profile

Advanced

Reverse proxy with Exchange 2013 and Outlook

Posted by Martinvdm 
Reverse proxy with Exchange 2013 and Outlook
July 05, 2018 02:45AM
Hi,

Everything runs fine for my Nginx reverse proxy, but only Exchange RPC is not working for Outlook. OWA is working well.

This is my nginx.conf

server {
listen 443;
ssl on;
ssl_certificate /etc/letsencrypt/fullchain-copy.pem;
ssl_certificate_key /etc/letsencrypt/privkey-copy.pem;
ssl_session_timeout 5m;

server_name fqdn.domain.com;

location / {
return 301 https://fqdn.domain.com/owa;
}

keepalive_timeout 3h;
tcp_nodelay on;
client_max_body_size 3G;
proxy_read_timeout 3h;
proxy_pass_header Date;
proxy_pass_header Server;
proxy_pass_header Authorization;

proxy_pass_request_headers on;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Accept-Encoding "";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Connection "Keep-Alive";
proxy_http_version 1.1;
proxy_request_buffering off;
proxy_buffering off;

#more_set_input_headers 'Authorization: $http_authorization';
#more_set_headers -s 401 'WWW-Authenticate: Basic realm="server.localfqdn.local"';

location ~* ^/owa { proxy_pass https://192.168.1.1; }
location ~* ^/Microsoft-Server-ActiveSync { proxy_pass https://192.168.1.1; }
location ~* ^/ecp { proxy_pass https://192.168.1.1; }
location ~* ^/rpc { proxy_pass https://192.168.1.1; }
location ~* ^/mapi { proxy_pass https://192.168.1.1; }
location ~* ^/oab { proxy_pass https://192.168.1.1; }
location ~* ^/autodiscover { proxy_pass https://192.168.1.1; }
#location ~* ^/mailarchiver { proxy_pass https://192.168.1.1; }

}

--

Not really getting an error besides and RPC_IN_DATA and RPC_OUT_DATA with 401 for "MSRPC".
Outlook keeps generating the Password prompt.

Tried with the nginx-extras, but not working also:
more_set_input_headers 'Authorization: $http_authorization';
more_set_headers -s 401 'WWW-Authenticate: Basic realm="server.localfqdn.local"';

Some one knowing the correct config for Outlook Anywhere?

Thanks

Martin
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 142
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