How do I add the ‘X-UA-Compatible’ HTTP Header to a NGINX Web Server?

Hi Everyone!

It’s Bac again with another solution for you…

Just in case you are running NGINX Web Server and wondering how to add the ‘X-UA-Compatible’ HTTP Header to the web server, here are the steps:

1) Open the  nginx.conf file in WordPad from nginx\conf folder

2) Add the line in red below to the server{..} section and save

server {

listen 80;

server_name localhost;

#charset koi8-r;

add_header ‘X-UA-Compatible’ ‘IE=EmulateIE7’;

#access_log logs/host.access.log main;

location / {…

3) Stop and restart NGINX server


Please note:  the above steps have been tested on version 0.6.

For information on how to add this Header to IIS Server see and Apache Server see



The IE Support Team

Comments (1)

  1. cweiske says:

    There should be double quotes, not ‘ and ’.