Bing Site Authentication via Nginx configuration

There are different options to authenticate your site with Bing.

  1. Place an XML file on your web server
  2. Copy and paste a <meta> tag in your default webpage
  3. Add CNAME record to DNS

In this post we targets option 1 since we are already familiar with Serving a single File with NGinx

In the scenario outline above this requires the following two steps:

  • Copy your BingSiteAuth.xml to a know location on your server (e.g. /var/www/html/devops).
  • Configure NGinx to serve the file under the required URL:
location /BingSiteAuth.xml {
  alias /var/www/html/devops/BingSiteAuth.xml;
}

Verify the result with Bing webmaster tools and you should be fine.

I'm curious to see how many people find us from Bing searches...

Show Comments