SharePoint 2016集成部署Office Web App Server (三)

简介:

Office Web App Server既然已经安装完成了,下面我们就来配置一下

 

首先我们要部署Office Web App Server场,这个场的概念和种类大致分为三种,且部署步骤略有不同,

微软官方的解释和场景描述如下:

1. 使用 HTTP 的、包含一台服务器的 Office Web Apps Server 场

        如果您仅将 Office Web Apps Server 部署用于测试或内部使用,并且您不需要向 Lync Server 2013 提供 Office Web Apps Server 功能,则此程序适合您。您将安装使用 HTTP 的、包含一台服务器的 Office Web Apps Server 场。您不需要证书或负载平衡器,但需要不运行任何其他服务器应用程序的专用物理服务器或虚拟机实例。您可以使用此 Office Web Apps Server 场向 SharePoint 2013 和 Exchange Server 2013 提供 Office Web Apps 功能。

部署包含一台服务器的 Office Web Apps Server 场的三个主要步骤。

2. 使用 HTTPS 的、包含一台服务器的 Office Web Apps Server 场

         对于大多数生产环境中,我们强烈建议对其安全功能使用 HTTPS。同样,如果您要向 Lync Server 2013 提供 Office Web Apps Server 功能,则需要 HTTPS,这样用户便可在浏览器中查看 PowerPoint 广播。此处将介绍如何安装使用 HTTPS 的、包含一台服务器的 Office Web Apps Server 场。您需要按照使用 HTTPS 保护 Office Web Apps Server Preview 通信中所述在服务器上安装证书。

此 Office Web Apps Server 场将向 SharePoint 2013、Lync Server 2013 和 Exchange Server 2013 提供 Office Web Apps 功能。

部署包含一台服务器的 Office Web Apps Server 场的三个主要步骤。

3. 使用 HTTPS 的、包含多台服务器的负载平衡 Office Web Apps Server 服务器场

          如果您预计您的 Office Web Apps Server 场流量很大,并且您希望其通过 Internet 且在内部网络中可用,则应使用此类型的拓扑。本节介绍如何安装使用负载平衡器和 HTTPS 的、包含多台服务器的 Office Web Apps Server 场。如果您感兴趣,请阅读关于此拓扑的详细信息

在您开始之前,请确保已按 Office Web Apps Server 的负载平衡器要求中所述配置负载平衡器。您还需按照使用 HTTPS 保护 Office Web Apps Server 通信中所述在负载平衡器上安装证书。此 Office Web Apps Server 服务器场将为 SharePoint 2013、Lync Server 2013 和 Exchange Server 2013 提供 Office Web Apps 功能。

部署包含多台服务器的 Office Web Apps Server 场的四个主要步骤。

 

今天在这里,我们的测试环境选用第二种,使用HTTPS的部署方式,因为我们这个会涉及到公网的发布(会涉及到公网证书),考虑到安全加密性,所以选择第二种。

1. 首先创建OWA Server场

用管理员角色打开powershell,输入一下命令

New-OfficeWebAppsFarm –InternalUrl ‘'https://owa.contoso.com” –ExternalUrl “https://owa.contoso.com” -CertificateName "Public Certificate" –EditingEnabled

注:如果大家和我一样,要做公网发布的话,且证书为通配符证书(*.contoso.com),那么这里我强烈建议大家最好统一内外URL名,这样方便客户端的认证和查询。

image

创建完毕,后期可以通过 get-officewebappFarm 命令来查询这个场的设置。

image

2. 验证OWA场是否成功

光看到上面的POWERSHELL截图是不够的,我们需要通过使用 Web 浏览器访问 Office Web Apps Server 发现 URL。发现 URL 是您在配置 Office Web Apps Server 服务器场时指定的 InternalUrl 参数,后跟 /hosting/discovery,例如:

https://server.contoso.com/hosting/discovery

我这里就用浏览器访问  https://owa.contoso.com/hosting/discovery

image

如果 Office Web Apps Server 按预期运行,您应该在 Web 浏览器中看到 Web 应用程序开放平台接口 (WOPI) 协议发现 XML 文件。如上述界面,就说明该 OWA场是配置成功了的。

3. 配置主机,和SharePoint做兼容配置

     通过上面两步,现在服务器场现在已经可以通过 HTTPS 为主机提供 Office Web Apps 功能。

    现在通过下面的命令来将SharePoint与OWA场进行绑定。

该操作在 SharePoint 服务器上操作!!!! 以管理员角色打开SharePoint Management Shell

image

注意,微软给出的官方命令是这样的 New-SPWOPIBinding -ServerName <WacServerName> –AllowHTTP

我这里后面是没有后面的 –allowHttp ,之前也提到过,我这个OWA场就是要用公网证书做加密发布的,所以我没有加这个参数。

接下来我们来看一下针对SharePoint绑定的 WOPI区域

用命令 Get-SPWOPIZone

image

我这里直接反馈的是 external-https 达到了我的目的,如果之前是加了参数 –AllowHttp 的,这里应该反馈的是  Internal-Http

修改这个WOPI区域,可以用下面的命令

Set-SPWOPIZone -zone "internal-http"    或者 Set-SPWOPIZone -zone "internal-https"  或者 Set-SPWOPIZone -zone "external-https"

我这里因为是使用的外部 HTTPS协议,就已经可以直接进行最后的效果测试了。

------------------------------------------------------------------------------分割线-------------------------------------------------------------------------------------------------------

注:如果您使用的是 internal-http ,那么还有下面一个步骤

若要在测试环境中通过 HTTP 将 SharePoint 2013 与 Office Web Apps 结合使用,您需要将 AllowOAuthOverHttp 设置为“True”。否则,Office Web Apps 将不起作用。可通过运行以下示例来检查当前状态:

(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp

如果此命令返回 False,则运行下列命令可将其设置为 True

$config = (Get-SPSecurityTokenServiceConfig)
$config.AllowOAuthOverHttp = $true
$config.Update()
再次运行以下命令来验证 AllowOAuthOverHttp 设置现在是否设置为 True。
(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp
------------------------------------------------------------------------------分割线-------------------------------------------------------------------------------------------------------

接下来….接下来…..那就直接测试了呗

我们尝试打开一个PPT文件

image

有效果…

image

成功!

image

 

对了,最后给大家说一个命令,如果你想取消SharePoint 和 OWA场的绑定,在SharePoint Management Shell上,用下面命令就可以了

Remove-SPWOPIBinding -All:$true




     本文转自horse87 51CTO博客,原文链接:http://blog.51cto.com/horse87/1904607,如需转载请自行联系原作者


相关文章
|
2月前
|
网络协议 容器
【Container App】部署Contianer App 遇见 Failed to deploy new revision: The Ingress's TargetPort or ExposedPort must be specified for TCP apps.
Failed to deploy new revision: The Ingress's TargetPort or ExposedPort must be specified for TCP apps.
74 27
|
3月前
|
开发框架 监控 .NET
【Azure App Service】部署在App Service上的.NET应用内存消耗不能超过2GB的情况分析
x64 dotnet runtime is not installed on the app service by default. Since we had the app service running in x64, it was proxying the request to a 32 bit dotnet process which was throwing an OutOfMemoryException with requests >100MB. It worked on the IaaS servers because we had the x64 runtime install
|
3月前
|
JavaScript C++ 容器
【Azure Bot Service】部署NodeJS ChatBot代码到App Service中无法自动启动
2024-11-12T12:22:40.366223350Z Error: Cannot find module 'dotenv' 2024-11-12T12:40:12.538120729Z Error: Cannot find module 'restify' 2024-11-12T12:48:13.348529900Z Error: Cannot find module 'lodash'
59 11
|
3月前
|
C#
【Azure App Service】使用Microsoft.Office.Interop.Word来操作Word文档,部署到App Service后报错COMException
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (0x80040154 (REGDB_E_CLASSNOTREG)).
|
3月前
【Azure App Service】PowerShell脚本批量添加IP地址到Web App允许访问IP列表中
Web App取消公网访问后,只允许特定IP能访问Web App。需要写一下段PowerShell脚本,批量添加IP到Web App的允许访问IP列表里!
|
4月前
|
机器人 Shell Linux
【Azure Bot Service】部署Python ChatBot代码到App Service中
本文介绍了使用Python编写的ChatBot在部署到Azure App Service时遇到的问题及解决方案。主要问题是应用启动失败,错误信息为“Failed to find attribute &#39;app&#39; in &#39;app&#39;”。解决步骤包括:1) 修改`app.py`文件,添加`init_func`函数;2) 配置`config.py`,添加与Azure Bot Service认证相关的配置项;3) 设置App Service的启动命令为`python3 -m aiohttp.web -H 0.0.0.0 -P 8000 app:init_func`。
|
4月前
|
开发工具 git C++
【App Service】VS Code直接部署App Service时候遇见 “fatal: not a git repository (or any of the parent directories): .git”
通过VS Code发布Python App Service的时候,遇见了发布失败错误: The deployment failed with error: fatal: not a git repository (or any of the parent directories): .git . Please take a few minutes to help us improve the deployment experience
110 24
|
6月前
|
Java 应用服务中间件 nginx
【Azure Spring Apps】Spring App部署上云遇见 502 Bad Gateway nginx
【Azure Spring Apps】Spring App部署上云遇见 502 Bad Gateway nginx
|
6月前
|
存储 Linux 开发工具
【Azure App Service】本地Git部署Python Flask应用上云(Azure App Service For Linux)关键错误
【Azure App Service】本地Git部署Python Flask应用上云(Azure App Service For Linux)关键错误
|
6月前
|
C++
【Azure Function App】在VS Code中,创建好Function App后部署到Azure中,无法选择Subscriptions
【Azure Function App】在VS Code中,创建好Function App后部署到Azure中,无法选择Subscriptions

热门文章

最新文章

  • 1
    【03】仿站技术之python技术,看完学会再也不用去购买收费工具了-修改整体页面做好安卓下载发给客户-并且开始提交网站公安备案-作为APP下载落地页文娱产品一定要备案-包括安卓android下载(简单)-ios苹果plist下载(稍微麻烦一丢丢)-优雅草卓伊凡
    33
  • 2
    【02】仿站技术之python技术,看完学会再也不用去购买收费工具了-本次找了小影-感觉页面很好看-本次是爬取vue需要用到Puppeteer库用node.js扒一个app下载落地页-包括安卓android下载(简单)-ios苹果plist下载(稍微麻烦一丢丢)-优雅草卓伊凡
    28
  • 3
    【01】仿站技术之python技术,看完学会再也不用去购买收费工具了-用python扒一个app下载落地页-包括安卓android下载(简单)-ios苹果plist下载(稍微麻烦一丢丢)-客户的麻将软件需要下载落地页并且要做搜索引擎推广-本文用python语言快速开发爬取落地页下载-优雅草卓伊凡
    23
  • 4
    【Azure Function】Function App门户上的Test/Run返回错误:Failed to fetch
    30
  • 5
    陪玩APP推送配置:陪玩系统手机锁屏收不到推送?可能是这些原因!解决方案来了!
    34
  • 6
    小游戏源码开发之可跨app软件对接是如何设计和开发的
    32
  • 7
    原生鸿蒙版小艺APP接入DeepSeek-R1,为HarmonyOS应用开发注入新活力
    134
  • 8
    PiliPala:开源项目真香,B站用户狂喜!这个开源APP竟能自定义主题+去广告?PiliPala隐藏功能大揭秘
    60
  • 9
    语音app系统软件源码开发搭建新手启蒙篇
    44
  • 10
    MNN-LLM App:在手机上离线运行大模型,阿里巴巴开源基于 MNN-LLM 框架开发的手机 AI 助手应用
    854