Question

I have a problem access Central Admin after I edit alternate access mapping.

I used the URL name "http://name/" without :port, and now it won't open.

When I open using SP 2016 Central admin Application, it goes to "name/" and "Can't reach this page" it said.

Is there a way to edit alternate access mapping again?

Was it helpful?

Solution

The central Administration is a web application that has its own alternate access mapping settings.

So you can edit the alternate access for this web application that will not affect other web application AAM settings.

In your case, you can't open central administration to edit these settings now, so you should use Powershell as below

Remove-SPAlternateURL -Identity https://InternalURL - Zone 'Zone Type'

Note: you should set the Zone type based on the zone that you have provided during configuring AAM like 'Internet' or 'Custom' or 'Intranet' 'Extranet'. Check also Remove-SPAlternateURL cmdlet, New-SPAlternateURL


As I have mentioned in the comments, try to get all AAM URLs for Central Administration URL in all zone using the below command line:

Get-SPAlternateURL -WebApplication "CA URL"

Based on the result list of the above cmdlet, remove the URL as below

 Remove-SPAlternateURL -Identity http://Incoming URL

Repeat the above cmdlet for all internal URLs (incoming URL) that you have added to the default zone.

For example,

Consider you have added an internal link (incoming URL) "https://test" that should have a default zone as shone below

enter image description here

So you should delete this entry as below

Remove-SPAlternateURL -Identity https://test

Note: You cannot delete the default zone for the main URL

OTHER TIPS

Please follow steps:

1.Remove the alternate URL of SharePoint Central Administration.

//Get SharePoint alternate access mappings
Get-SPAlternateURL -WebApplication "http://intranet.crescent.com" | Format-table -AutoSize
//Remove the alternate URL 
Remove-SPAlternateURL -WebApplication https://sitename - Zone 'Zone Type'

2.Add Alternate Access Mapping in SharePoint using PowerShell

New-SPAlternateURL –WebApplication "http://old_sitename" -URL "http://new_sitename" –Zone 'Zone Type'
//For example:New-SPAlternateURL –WebApplication "http://intranet.crescent.com" -URL "http://portal.crescent.com" –Zone Internet

3.Add a binding to the web application in IIS

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top