zoukankan      html  css  js  c++  java
  • Configure NGINX with Exchange 2010, 2013 and 2016 (including RPC / Outlook Anywhere access)

    Configure NGINX with Exchange 2010, 2013 and 2016 (including RPC / Outlook Anywhere access)

     
    I have seen many threads on the internet with people complaining about RPC and Exchange (getting Outlook Anywhere to work.)

    I have also seen several configurations all of which did not work correctly for me.

    My configuration should work for 2010, 2013 and 2016:

    server {
      listen 192.168.0.1:443 ssl;
      server_name owa.myserver.com;
      ssl_certificate /etc/nginx/ssl/cert.pem;
      ssl_certificate_key /etc/nginx/ssl/key.key;
      access_log  /var/log/nginx/mydomain.access.log  combined;
      error_log  /var/log/nginx/mydomain.error.log;
      client_max_body_size 3G;
      proxy_request_buffering off;
      ssl_session_timeout     5m;
      tcp_nodelay on;
        proxy_http_version      1.1;
        proxy_read_timeout      360;
        proxy_pass_header       Date;
        proxy_pass_header       Server;
        proxy_pass_header      Authorization;
        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_pass_request_headers on;
        more_set_input_headers 'Authorization: $http_authorization';
        proxy_set_header Accept-Encoding "";
        more_set_headers -s 401 'WWW-Authenticate: Basic realm="fqdnofyourexchangeserver"';
        proxy_buffering off;
        proxy_set_header Connection "Keep-Alive";
      location / {
      return 301 https://owa.myserver.com/owa;
      }
      location ~* ^/owa { proxy_pass https://fqdnofyourexchangeserver; }
      location ~* ^/Microsoft-Server-ActiveSync { proxy_pass https://fqdnofyourexchangeserver; }
      location ~* ^/ecp { proxy_pass https://fqdnofyourexchangeserver; }
      location ~* ^/rpc { proxy_pass https://fqdnofyourexchangeserver; }
    }
    # redirect all http traffic to https
    server {
      listen 80;
      server_name owa.myserver.com;
      return 301 https://$host$request_uri;
    }
  • 相关阅读:
    PHP的错误和异常处理
    异步并行批处理框架设计的一些思考
    系统出错信息设计
    SpringMVC+Shiro权限管理
    jstl教程
    为什么Lisp语言如此先进
    「只差程序员」为什么会招黑? [转自:知乎]
    大侠是怎样炼成的 周昆 [转]
    【OpenGL】glFinish()和glFlush()函数详解-[转]
    VC++ 6.0中实现三叉切分窗口与多视图 [转]
  • 原文地址:https://www.cnblogs.com/yaoyangding/p/15291559.html
Copyright © 2011-2022 走看看