Sunday, 23 November 2014

Configuring "Alternate Access Mappings" at SharePoint 2010


Nice article by Bruce Tuncertan, very easy to understand


Once you have your SharePoint site up and running you may want to add/change the URL of your SharePoint site. In very basic terms here how you can accomplish this.

When you want to change or add new URL to your existing SharePoint site.
First thing you need to do is to make sure that the new URL is in your DNS settings. I mean when you ping the new URL it should ping the same IP address of your existing SharePoint site URL.
In my case since I have a single server installation on my desktop all I needed to is to add the new URL to my "hosts" file.

In case if you don't know where is your hosts file here are quick steps for you to get that done. 
 
 
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF_f8kq8U9AC80oyp5RXhkB5SPsUF0xBhkdL3uawadXCp5FWX0PKL2YoL4rxX-gQNH92hPaD_s1rwkBjcyKEyoOtUSlQNje2RwjH_A7LI_jla2qThG70weGlYt5hhEZC_x1EreUL4LlOOx/s1600/How+to+run+Notepad+as+Adminsitrator.png 
 
 
 
  • Open a Notepad (or any other editor) in "Administrator" mode
  • Then go to File->Open and open to "\Windows\System32\Drivers\Etc\Hosts" file:
 
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeUK2AWeOWZhz7wJr_-SuM_NoX3aql2Qd9oNL78Am-4w3k29mp7DCmWUpkIiovAf2TFo9D5PXgP_VpDwi_dFoISnEWHdsMy1MSFME8jtJZs7Pa0VfTPnw5-EceAGGi0E9uNkOOptQV7WY_/s1600/Open+hosts+file.png 
 
  • Add the IP address and the destination to the end of your hosts file. In my case I added "127.0.0.1        SharePointTidBits" right to the end.
  • Save and Close.
  • If you have an environment controlled by a DNS server you should add new name to your existing DNS Servers either "A" or "CNAME" record.


Once we handled the DNS/hosts modification then we need to add or modify the "Alternate Access Mappings" (AAM).

Go to :
Central Administration -> System Settings -> Configure Alternate Access Mappings. 
 
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh27145lKQHzhCGId3Lo_McaXzpquP5f21YX4qRsqcWhRa8r_u1yIvvNhhTWFNkQhqSp9yoUG7l706KX65iYxKOVdRMj6yQ5NnIPDK9PsBkUp9pWIK2-FOUul-PWyoIKJi6fnH95ON_WF8W/s1600/SharePoint+CentralAdmin+Alternate+Access+Mappings.png 
 
Then you click to "Add Internal URLs"
Please select the correct "Alternate Access Mapping Collection". This will be the your site you’d like to add/change the URL. Click "Alternate Access Mapping Collection":
 
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4okZFWDikxOKBO76djdhwhSM4QgnjB3Js6vuL0ejmtVVnOPJnomlcTmMo4gkv7cgWk3_lX114xAERefkjwEP1-PZxzzfpY29WN6hbN86NjWA0xlM6Qf9OKocG7t4HVZGqLZhOdq-1tyjb/s1600/SharePoint+CentralAdmin+Alternate+Access+Mappings+SIte+Collection+Selection.png


In my case I select "SharePoint - 80" and I enter the URL I would like to add to the appropriate zone which in my case it is my Intranet.
 
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3F7v8CSPDLpIJdZaoPwOm_WcVqw5HKfE7f3YgM9Yexgdhycvz-Hj0Kni5HL7s3sJONzOboud5zsaBj7btIVVUZ8QhDGS467obh7xPN7y0Iq5njbdoL-qhHYfg1n1FnCf1O_jlSY2ejmPu/s1600/SharePoint+CentralAdmin+Alternate+Access+Mappings+Intranet+Site+Added.png 
 
Then I click save and here we go:
 
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3VUVc54YA0XiRlqeqKKLI4n6PKkGkeBdlwBNy6sDTXXTN0reM7HtIerdA-xjIHamHRBSJDFsSbvERxUCwVZugcOYkyi8WMDreT54Hv1LWGxkyidQb54P70uTKf-UdNegtuyJJXC1242SU/s1600/SharePoint+CentralAdmin+Alternate+Access+Mappings+Site+Added.png 
 
You think that its that easy, isn't it?
It should be but in my case when I try to access to the new URL "http://SharePointTidBits", IE is keep prompting me the user name and password.

Here is what I need to do to solve this issue:
  1. Click Start, click Run, type regedit, and then click OK.
  1. In Registry Editor, locate and then click the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0
  1. Right-click MSV1_0, point to New, and then click Multi-String Value.
  2. Type BackConnectionHostNames, and then press ENTER.
  3. Right-click BackConnectionHostNames, and then click Modify.
  4. In the Value data box, type the host name or the host names for the sites that are on the local computer, and then click OK.
  5. Quit Registry Editor, and then restart the IIS service.

Tadaaa!
 
 
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh06lDel8OpScl5IwgPAkbkK5hqoZv5sQOhQ1EXX3rAKrs0sr2HmyK7DkkhnlnYdBLi12UIf8suG0SfgvpWq8aUhOgQIwgtCDbo7Zvq54mB-kX0jPAEf5dQFcwOwaexqLToBQs7IWoI8M_A/s1600/Bruces+SharePoint+TidBits+Alternate+Access+Mappings+Site+is+Working.png
 


Reference:

http://sharepointtidbits.blogspot.in/2010/11/once-you-have-your-sharepoint-site-up.html


No comments:

Post a Comment