SharePoint Alternate Access Mapping on Domain URL Not Working

Mohammed Abed 145 Reputation points
2023-05-08T05:23:02.9566667+00:00

Hello,

I am trying to put an SP site on the main domain URL as an AAM but it is not working. It keeps giving refused to connect.

Meanwhile, it works fine on any subdomain that I put it as an AAM. Note also, that the main domain if I put any IIS app on it works fine.

So, the problem is not from the domain it self. I want to put an SP site to be accessible on Internet using domain.com (sub.domain.com) works fine.

After referring to logs, I encountered the following:

" The web application at [url] could not be found. Verify that you have typed the url correctly. If the url should be serving existing content, the system administrator may need to add a new request url mapping to the intended application. "

Several articles are suggesting changing the Target Framework or something with the permission. However, Target Framework can't be changes since we are talking about SPFX and for permissions things are working fine for subdomains or even hosting any app on the domain URL.

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,287 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,159 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,784 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,594 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,881 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 43,661 Reputation points Microsoft Vendor
    2023-05-08T09:50:56.5566667+00:00

    According to your original post, I understand that AAM does not work in the one domain.

    Is there any error message? You could provide some screenshots.

    And any clues in the ULS logs?


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.