简化 Outlook Web App URL

适用于:Exchange Server 2013

总结: 使用本文中的过程简化组织用户在 Exchange 2013 中访问 OWA 的 URL。

可以简化用户用于访问其 Exchange Server 2013 邮箱的Microsoft Outlook Web App URL。

若要简化用户对 Outlook Web App 的访问,可能需要配置 Outlook Web App 网页(通常是采用 IIS 的默认网站),以便将用户自动重定向到 https。 “使用 IIS 管理器简化Outlook Web App URL 并强制重定向到 SSL”部分中的过程会将 的请求http://server重定向到 https://server/owa。 为了帮助保护客户端与服务器之间发送的信息,默认网站在安装时设置为需要安全套接字层 (SSL)。

在 Windows Server 2008 中配置来自顶级目录的重定向时,设置将传播到低级别目录。 例如,当您将默认网站配置为重定向到 /owa 虚拟目录时,您配置的设置也会出现在所有虚拟目录(如 /Autodiscover、/Exchange 和 /Public)的 HTTP 重定向页面上。 因此,除了希望重定向的虚拟目录之外,您必须从所有虚拟目录中删除重定向。

开始前,有必要了解什么?

  • 估计完成时间:10 分钟。

  • 您必须先获得权限,然后才能执行此过程或多个过程。 若要查看所需的权限,请参阅 客户端和移动设备权限主题"Outlook Web App 权限"部分中的"IIS 管理器"条目。

  • 若要了解本主题中的过程可能适用的键盘快捷键,请参阅 Exchange 管理中心内的键盘快捷键

提示

是否有任何疑问? 在 Exchange 论坛中寻求帮助。 访问 Exchange Server 的论坛。

步骤 1:使用 IIS 管理器简化 Outlook Web App URL 并强制重定向到 SSL

  1. 启动 IIS 管理器。

  2. Expand the local computer, expand Sites, and then click Default Web Site.

  3. At the bottom of the Default Web Site Home pane, click Features View if this option isn't already selected.

  4. In the IIS section, double-click HTTP Redirect.

  5. Select the Redirect requests to this destination check box.

  6. 键入 /owa 虚拟目录的绝对路径。 例如,键入 https://mail.contoso.com/owa

  7. Under Redirect Behavior, select the Only redirect requests to content in this directory (not subdirectories) check box.

  8. In the Status code list, click Found (302).

  9. In the Actions pane, click Apply.

  10. Click Default Web Site.

  11. In the Default Web Site Home pane, double-click SSL Settings.

  12. In SSL Settings, clear Require SSL.

    注意

    If you don't clear Require SSL, users won't be redirected when they enter an unsecured URL. Instead, they'll get an access denied error.

步骤 2:从虚拟目录中删除重定向

若要从虚拟目录中删除重定向,请执行以下步骤:

  1. 打开命令提示符窗口。

  2. 导航到 %WinDir%\System32\Inetsrv

  3. 运行以下命令:

    1. appcmd set config "Default Web Site/autodiscover" /section:httpredirect /enabled:false -commit:apphost

    2. appcmd set config "Default Web Site/ecp" /section:httpredirect /enabled:false -commit:apphost

    3. appcmd set config "Default Web Site/ews" /section:httpredirect /enabled:false -commit:apphost

    4. appcmd set config "Default Web Site/owa" /section:httpredirect /enabled:false -commit:apphost

    5. appcmd set config "Default Web Site/oab" /section:httpredirect /enabled:false -commit:apphost

    6. appcmd set config "Default Web Site/powershell" /section:httpredirect /enabled:false -commit:apphost

    7. appcmd set config "Default Web Site/rpc" /section:httpredirect /enabled:false -commit:apphost

    8. appcmd set config "Default Web Site/rpcwithcert" /section:httpredirect /enabled:false -commit:apphost

    9. appcmd set config "Default Web Site/Microsoft-Server-ActiveSync" /section:httpredirect /enabled:false -commit:apphost

  4. 通过运行命令 iisreset/noforce完成。

从顶级目录配置重定向时,可能会在 下 %ExchangeInstallPath%ClientAccess\OAB创建web.config文件。 如果发生这种情况,并且稍后删除重定向,则当用户单击“ 发送和接收”时,Outlook 可能会冻结。 若要在删除重定向后避免此问题,请从 %ExchangeInstallPath%ClientAccess\OAB中删除 web.config 文件。

如何知道操作成功?

为了验证您已成功简化 Outlook Web App URL 并将其重定向到 SSL 连接,请执行以下操作:

  1. 打开 Web 浏览器,并使用 格式http://<URL>输入Outlook Web App的新 URL。

  2. 您应该通过 SSL 连接重定向到 Outlook Web App 登录页。