Share via


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 https://msdn.microsoft.com/en-us/library/cc817572.aspx and Apache Server see https://msdn.microsoft.com/en-us/library/cc817573.aspx

 

Regards,

The IE Support Team

Comments

  • Anonymous
    May 12, 2016
    There should be double quotes, not ‘ and ’.