The SharePoint Apps Environment has been available since SharePoint 2013. The documentation available for configuring the environment is somewhat all over the place. If you want to learn how to configure SharePoint 2019 Apps environment, especially with SSL support, read on!
The following settings will be used for setting up the apps environment in this example:
Company Name: Uber Widgets
Portal Web App: Uber Widgets
Portal URL: https://portal.uberwidgets.com
APPS Web App: Uber Widgets Apps
APPS URL: https://uberwidgets-apps.com
Configure a domain name for your apps. The domain should not be a subdomain of the domain that hosts the SharePoint sites. For example, if your portal domain is uberwidgets.com, consider using something like uberwidgets-apps.com and NOT apps.uberwidgets.com.
Create a wildcard alias record for the new domain. The alias name should be * (asterisk). For example, *.uberwidgets-apps.com. The CNAME record should point to the SharePoint portal.
Example 1: There is a single web front end serving content for https://portal.uberwidgets.com. The DNS name portal.uberwidgets.com points to the web front end. Point the CNAME record to the fully qualified domain name (FQDN) of the web front end.
Example 2: There are 3 load balanced web front ends serving content for https://portal.uberwidgets.com. The DNS name portal.uberwidgets.com points to the load balancer. Point the CNAME record to the FQDN of the load balancer.
If the SharePoint portal is using HTTPS/SSL, use SSL for the apps. The domain should be added in the form of a wildcard. For example: *.uberwidgets-apps.com. The issued certificate must be in PFX format.
If the existing web application is using SSL, enable "Server Name Indication" in IIS. Otherwise only one IIS site can run on port 443.
Enable automatic provisioning of the Microsoft SharePoint Foundation Subscription Settings Service as follows:
Create Subscription Settings service application and proxy as follows:
$sa = New-SPSubscriptionSettingsServiceApplication -ApplicationPool "ServiceApps" -Name "Subscription Settings Service" -DatabaseName "SP_Service_SubscriptionSettings" $proxy = New-SPSubscriptionSettingsServiceApplicationProxy -ServiceApplication $sa
Create App Management service application and proxy as follows:
$sa = New-SPAppManagementServiceApplication -ApplicationPool "ServiceApps" -Name "App Management Service" -DatabaseName "SP_Service_AppManagement" $proxy = New-SPAppManagementServiceApplicationProxy -ServiceApplication $sa -Name "App Management Service Proxy"
Each web application can have its own app catalog. Create an app catalog as follows:
The last step is to configure App URLs as follows:
Congratulations! The SharePoint 2019 apps environment should now be fully operational.