You have a SharePoint Server 2010 Service Pack 1 (SP1) server farm. The farm contains a web application named WebApp1. Users access WebApp1 by using the URL http://webapp1. You need to ensure that you can access WebApp1 by using the URL http://webapp2. What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
A. the site bindings of WebApp1, add the host name WebApp2.
B. From Windows PowerShell, run the New-SPAlternateUrl -Url http://webapp2-WebApplication http:// webapp1 -Zone Intranet cmdlet.
C. From Windows PowerShell, run the Set-SPAlternateUrl -Identity http://webapp1 -Url http://webapp2 -Zone Intranet cmdlet.
D. Create a new web application named http://webapp2.
E. To WebApp1, add a managed path named WebApp2.
Correct Answer: AB
Explanation/Reference:
The New-SPAlternateUrl cmdlet creates a new public or internal URL for the specified Web application zone or resource. Use the ResourceName parameter if the alternate URL is for an external resource.
Each Web application can be associated with a collection of mappings between internal and public URLs. Both internal and public URLs consist of the protocol and domain portion of the full URL; for example, https://www.fabrikam.com. Users type a public URL to get to the SharePoint site, and that URL appears in the links on the pages. Internal URLs are in the URL requests that are sent to the SharePoint site. Many internal URLs can be associated with a single public URL in multiserver farms; for example, when a load balancer routes requests to specific IP addresses to various servers in the load- balancing cluster.
Each Web application supports five collections of mappings per URL; the five collections correspond to five zones (default, intranet, extranet, Internet, and custom). When the Web application receives a request for an internal URL in a particular zone, links on the pages returned to the user have the public URL for that zone.
------------------EXAMPLE-----------------------
#create the public URL
New-SPAlternateURL https://www.contoso.com -Zone "Internet"
#create the internal URL
New-SPAlternateURL http://sharepoint.contoso.com -Zone "Internet" -internal
This example translates incoming requests for https://www.contoso.com into http://sharepoint.contoso.com (on the Internet zone).
When a reverse proxy is being set up to handle public URL SSL termination, alternate access mappings must be configured to handle the URL translation.