Step 1: Open the elevated SharePoint 2013 Management Shell
Select the process that corresponds to your server's operating system.
in Windows Server R2
Click Start > All Programs > Microsoft SharePoint 2013 products.
Right-click SharePoint 2013 Management Shell, and then click Run as Administrator.
in Windows Server 2012
Press the Windows logo key and Q at the same time, or swipe in from the edge of the screen to display the charms, and then click Search to see all the applications that are installed on your computer.
Right-click SharePoint 2013 Management Shell to display the application bar.
In the application bar, click Run as Administrator.
Step 2: Create a binding between SharePoint 2013 and Office Web Apps Server
Run the following command, where <WacServerName> is the fully qualified domain name (FQDN) that you set for the internal URL. This is the entry point for Office Web Apps Server traffic. For this test environment, you must specify the –allowhttp parameter to allow SharePoint 2013 to receive discovery information from the Office Web Apps server farm by using HTTP. If you do not specify –allowhttp, SharePoint 2013 will attempt to communicate with the Office Web Apps server farm using HTTPS, and this command will fail.
New-spwopibinding-servername <WacServerName>-allowhttp
After you run this command, you should see a list of bindings displayed at the Windows PowerShell command prompt.
Do you need help? See new-spwopibinding.
Step 3: View the WOPI zone for SharePoint bindings
Office Web Apps Server uses zones to determine which URLs (internal or external) and protocol (HTTP or HTTPS) will be used when communicating with hosts (in this example, SharePoint 2013). By default, SharePoint Server 2013 uses the Internal-https zone. Confirm that this is the current zone by running the following command:
Get-spwopizone
The WOPI area that this command displays should be internal-http. If the display is correct, skip to step 5, otherwise see next.
Do you need help? See Get-spwopizone.
Step 4: Change the WOPI region to Internal-http
If the result obtained by performing step 3 is Internal-https, run the following command to change the zone to internal-http. You need to make this change because the zone for SharePoint 2013 must match the region of the Office Web Apps server farm.
Set-spwopizone-zone "Internal-http"
Run Get-spwopizone again to confirm that the new zone is internal-http.
Do you need help? See Set-spwopizone and Get-spwopizone.
Step 5: Change the Allowoauthoverhttp setting in SharePoint 2013 to True
To use SharePoint 2013 with Office Web Apps in a test environment with HTTP, you need to set Allowoauthoverhttp to True. Otherwise, Office Web Apps will not work. You can check the current status by running the following example:
(Get-spsecuritytokenserviceconfig). Allowoauthoverhttp
If this command returns False, run the following command to set it to True.
$config = (get-spsecuritytokenserviceconfig)
$config. Allowoauthoverhttp = $true
$config. Update ()
Run the following command again to verify that the Allowoauthoverhttp setting is now set to True.
(Get-spsecuritytokenserviceconfig). Allowoauthoverhttp
Do you need help? See Get-spsecuritytokenserviceconfig.
Step 6: Verify that Office Web Apps is working correctly
SharePoint 2013 Installation