Exchange Connection Problems

How to Fix Microsoft Autodiscover Connecting to Your Web Server

Steven ParkerSteven Parker Nov 2, 2026 870 views

Question details

The user needs to prevent Microsoft Outlook Autodiscover from querying their public web server and generating error logs.

How to Fix Microsoft Autodiscover Connecting to Your Web Server
Product
Microsoft Outlook
Device & OS
AWS Linux
Scenario
Configuring email clients or running Autodiscover tests for a domain that is hosted on an AWS Linux web server.
Observed behavior
Microsoft Autodiscover erroneously requests https://domainname.com/autodiscover/autodiscover.xml from the public web server instead of the actual Exchange endpoint, resulting in server error messages.
Before you start

Ensure you have administrative access to your domain's DNS settings and the AWS Linux web server, and have your correct Microsoft 365 or Exchange endpoint addresses ready.

Solution 1Recommended

Verify and Update Autodiscover DNS Records

Correcting your DNS records ensures Autodiscover traffic is accurately directed to your Exchange or Microsoft 365 endpoint rather than the public web server.

By default, Outlook searches for Autodiscover settings using various URLs based on your domain. If the correct DNS records are missing or misconfigured, the client defaults to querying the root domain's web server.

1
Log in to DNS Provider

Log in to your domain registrar or DNS hosting provider's control panel.

2
Access DNS Management

Navigate to the DNS management, Zone Editor, or Advanced DNS settings section.

3
Locate CNAME Record

Find the existing CNAME record for 'autodiscover'. If it does not exist, create a new CNAME record.

4
Update Endpoint

Ensure the CNAME record points directly to 'autodiscover.outlook.com' (for Microsoft 365) or your specific on-premises Exchange server endpoint.

5
Save Changes

Save the DNS configuration and allow sufficient time for global DNS propagation.

DNS Propagation: DNS changes may take anywhere from a few minutes to 48 hours to fully resolve across all networks.
Free Microsoft Office alternative

Experience a Lightweight and Efficient Office Suite with WPS Office

While troubleshooting Microsoft Outlook and Exchange server connections can be highly technical, managing your everyday documents shouldn't be. WPS Office offers a free, lightweight, and highly compatible alternative to Microsoft Office for all your word processing, spreadsheet, and presentation needs.

  1. 1. Download the Installer: Visit the official WPS website and click 'Download WPS Office Free'.
  2. 2. Install WPS Office: Run the downloaded setup file and follow the straightforward on-screen instructions.
  3. 3. Start Creating: Open WPS Office to instantly access, create, or edit your Microsoft Office files with full format compatibility.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Lightweight installation that runs smoothly without heavy system resource consumption.Familiar and intuitive user interface for a seamless migration experience.Built-in PDF editor and a comprehensive toolkit for everyday office tasks.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Outlook Autodiscover check my root domain web server first?

By default, Outlook's Autodiscover process attempts to connect to the root domain URL (https://domainname.com/autodiscover/autodiscover.xml) before falling back to the autodiscover subdomain. This is a built-in fallback sequence designed by Microsoft to locate configuration files.

Can I disable the root domain check in Microsoft Outlook?

Yes, you can bypass the root domain Autodiscover check by modifying the Windows Registry on the client machine. You need to add the 'ExcludeHttpsRootDomain' DWORD value under the Autodiscover registry key and set it to 1.

What should I do if my AWS Linux server keeps logging Autodiscover 404 errors?

If you cannot modify the registry of every Outlook client connecting to your domain, set up a rewrite or redirect rule in your Apache or Nginx configuration on the AWS Linux server to route those requests to the correct Microsoft endpoint or drop them gracefully.