다음을 통해 공유


SharePoint 2013.Configure app domain in SharePoint 2013.

Hi All,

In this article I am going to step down how to configure app domain for Share Point 2013.

Before I begin make sure your system having ** DNS Server Role configured.**

Open DNS-> Right click forward lookup Zone to map to main domain.
 
  

Click on New Zone.


We need subdomain to host our SharePoint app.I am going to name it spsapps.com ,click next.

Our subdomain is created.We will now map our subdomain with main domain,
 

Right click your subdomain(spsapps.com) and click New Alias.

  Go to your main domain as shown below and click sys(Name will differ for your system).

 Give fully qualified name as shown below.

Next we need to start  App mgmt and Subscription service in central admin which will do via powershell script.
 

Run the below power shell script . appconfig.ps1.                                                                                                                        

$account = Get-SPManagedAccount "sps\spadmin"

# Creates an application pool for the Subscription Settings service application.

$appPoolSubSvc = New-SPServiceApplicationPool -Name SettingsServiceAppPool -Account $account

# Creates the Subscription Settings service application, using the variable to associate it with the application pool that was created earlier.

$appSubSvc = New-SPSubscriptionSettingsServiceApplication –ApplicationPool $appPoolSubSvc –Name SettingsServiceApp –DatabaseName SettingsServiceDB

# Creates a proxy for the Subscription Settings service application.

$proxySubSvc = New-SPSubscriptionSettingsServiceApplicationProxy –ServiceApplication $appSubSvc

# Creates an application pool for the Application Management service application.

$appPoolAppSvc = New-SPServiceApplicationPool -Name AppServiceAppPool -Account $account

# Creates the Application Management service application, using the variable to associate it with the application pool that was created earlier.

$appAppSvc = New-SPAppManagementServiceApplication -ApplicationPool $appPoolAppSvc -Name AppServiceApp -DatabaseName AppServiceDB

# Creates a proxy for the Application Management service application.

$proxyAppSvc = New-SPAppManagementServiceApplicationProxy -ServiceApplication $appAppSvc

Open SharePoint 2013 management shell.

You can see your App mgmt and Subscription service ready in central admin.

Open central admin and click on App and go Configure App URLs.

In App domain enter your spsapps.com and App prefix as apps as shown below. 

We are good to go now 

Regards,
Vivek KS