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
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