3 mins read
How to setup a Public site on Enterprise portal in AX2012
The public site is a custom site collection deployed/created on top of regular SharePoint app (Sharepoin-80) that we configure while installing EP on AX2012. This post will list down steps to setup a public site.
Pre-Requisites:
- The SharePoint foundation 2010 or 2013 has already been installed and configured on the box.
- The regular EP site must be installed and deployed. (refer to TechNet article for EP installation)
Public Site Creation in SharePoint 2010/2013
- Launch SharePoint Central Administration
- Under Application Management, click Manage web applications
- Select the Web Application hosting the public site. It is SharePoint – 80 in our case.
- Click Authentication Providers button from the ribbon
- Click the Default Zone
- Under Anonymous Access, make sure Enable anonymous access check box is unchecked (required for EP Public Site Creation)
- Click Save
- Under Application Management, click Create Site Collections
- On the following page, enter page Title as EP Public Site (or any meaningful name)
- Set Web Site Address URL as Public (or anything meaningful)
- SP2013 ONLY: Select 2010 from ‘Select experience version’ drop down
- Select Microsoft Dynamics Public template under Custom tab
- Set Primary Site Collection Administrator as your alias
- Press OK
After the site has successfully been created, click on the site URL to verify that you can access it
Configure IIS
- Open Internet Information Services (IIS) Manager (Start > Administrative Tools > Internet Information Services Manager).
- Select the Web Site SharePoint-80
- Double click on Authentication
- Enable Anonymous Authentication (if not already)
- Enable Windows Authentication (if not already)
Enable Guest Account in AX
- From the Microsoft Dynamics AX client, click System Administration > Common -> Users -> Users.
- Double click the Guest User
- Click on Edit
- Select the Enabled check box.
- Assign Guest user to Vendor anonymous (external) role. (note: needed to expose vendor portal on Public site, you can add more external roles as needed)
Configuring SharePoint
- Launch SharePoint Central Administration
- Under Application Management, click Manage web applications
- Select Web Application hosting the public site. It is SharePoint – 80 in our case.
- Click Authentication Providers button from the ribbon
- Click the Default Zone
- Under Anonymous Access, check Enable anonymous access (if not already)
- Click Save
- Now go to the EP Public site http://<host_name>/sites/Public
- Click Sign In to login using system account
- Navigate to Menu Site Actions > Site Permission
- From the Ribbon click Anonymous Access button
- In the popup dialog, select Entire Web site and click OK
- 13.Launch SharePoint Central Administration
- Click Application Management > Web Applications > Configure alternate Access Mapping
- Click Add Internal URLs
- Choose Alternate Access Mapping collection to be the Web application Sharepoint-80
- Type http://localhost as the internal URL and Zone =Default.
- 18. Click Save
Setup Internet Explorer for anonymous access
To ensure that you are accessing the page in anonymous access mode and not automatically logged in using Windows authentication:
- In Internet Explorer, Go to Tools > Internet Options > Security tab
- Select the Trusted zone
- Click on Custom Level
- Scroll to the bottom, under User Authentication > Login
- Select Anonymous logon.
- Click OK
Now you should be able to access your public site at the URL http://<host_name>/sites/Public