Step 1
Create a forward lookup zone
Click Start -> open DNS Manager
Right click on Forward Lookup Zone -> Click New Zone.
On the Zone Type, click Primary zone.
Click Next -> check All the DNS Servers are running on this domain.
Click Next.
Provide the zone name “sharepointapps.com”, followed by clicking Next.
Click Next- > allow automatic updates -> Click Finish.
As of now, the new forward lookup zone has been created successfully.
Create a CNAME for the domain name.
Right click on the app domain name -> Click New alias CNAME.
In the Alias name box, type ‘*’.
In FQDN (Fully Qualified Domain Name), click the forward lookup zone for SharePoint sites domain.
Click OK.
CNAME has been created successfully.
To verify the new domain name, open the command prompt.
Command
Ping domainname.sharepointapps.com
Example
Ping technologygeeks.sharepoint.com
After successful reply of an IP address from your Server, wild card has been created successfully.
Let’s navigate to SharePoint Server Central Administration to activate the Services given below.
- Microsoft SharePoint Foundation Subscription setting Services.
- App management Services.
Open Central Administration -> Navigate to system settings -> click Manage Services on the Server.
Check both Services are in started state, else start the Services.
You can also create subscription settings and app management Service Application via PowerShell and Central Administration.
After successful configuration of both Services, Applications will go and configure app URL.
Open SharePoint Central Administration.
Click Apps.
Under App management -> click Configure app URL.
Enter the app domain and app prefix.
Click OK to complete the setup.
Now, open Visual Studio -> under Office365/SharePoint -> App.
Pick a template app for SharePoint 2013.
Provide the name of the project “Helloworld”.
Provide the developer site URL and select the type of an app.
- Auto hosted.
- SharePoint hosted.
- Provider hosted.
For my scenario, I have picked a SharePoint hosted app.
Click Finish.
Modify the default.aspx page with <h1></h1> tag.
Click Build - > Deploy.
After successful installation of app, it will look, as shown below.
Open the developer site.
Click the app -> Click Launch.
The final result is shown below.
Happy learning.