64bithost.com
Regular Pleskian
Manuel, thank you so much for posting this workaround here! I was just dealing with the same issue and without your advise I would have spent much more time!
Allow me to enhance your solution on Plesk 9 for Unix as well
Indeed, since Plesk 9 new control panel web server was introduced - and it is based on lighttpd:
Code:# rpm -qi sw-cp-server-1.0-5.200902131203.centos5 Name : sw-cp-server Relocations: (not relocatable) Version : 1.0 Vendor: SWsoft, Inc. Release : 5.200902131203.centos5 Build Date: Fri 13 Feb 2009 03:05:32 PM JST Install Date: Thu 30 Apr 2009 09:57:16 AM JST Build Host: bcos5.plesk.ru Group : System Environment/Daemons Source RPM: sw-cp-server-1.0-5.200902131203.centos5.src.rpm Size : 1252127 License: Revised BSD Signature : (none) Packager : SWsoft, Inc. <info@swsoft.com> Summary : SWsoft control panels server Description : HTTP server for SWsoft control panels based on lighttp
So - for Plesk 9 we should basically do the same - add X-UA-Compatible: IE=EmulateIE7 header to lighttpd output. In lighttpd you just need to add:
1) "mod_setenv" module to Plesk CP configuration
2) setenv.add-response-header = ( "X-UA-Compatible" => "IE=EmulateIE7" ) directive to each virtual host (8443 and 8880)
Just like this:
Code:# pwd /etc/sw-cp-server/applications.d # diff plesk.conf plesk.conf.bak 1c1 < server.modules += ("mod_expire", "mod_fastcgi", "mod_rewrite", "mod_accesslog", "mod_alias", "mod_compress","mod_setenv") --- > server.modules += ("mod_expire", "mod_fastcgi", "mod_rewrite", "mod_accesslog", "mod_alias", "mod_compress") 10d9 < setenv.add-response-header = ( "X-UA-Compatible" => "IE=EmulateIE7" ) 57d55 < setenv.add-response-header = ( "X-UA-Compatible" => "IE=EmulateIE7" ) # grep -B 1 setenv.add-response-header plesk.conf $SERVER["socket"] == ":8443" { setenv.add-response-header = ( "X-UA-Compatible" => "IE=EmulateIE7" ) -- $SERVER["socket"] == ":8880" { setenv.add-response-header = ( "X-UA-Compatible" => "IE=EmulateIE7" )
After sw-cp-server restart:
Code:# /etc/init.d/sw-cp-server stop Stoppping SWsoft control panels server... stale pidfile. [ OK ] # /etc/init.d/sw-cp-server start Starting SWsoft control panels server... [ OK ]
.. you can verify that header is being added by checking the control panel or just by getting any answer from the web server:
Code:# telnet 192.168.5.68 8880 Trying 192.168.5.68... Connected to 192.168.5.68. Escape character is '^]'. GET / HTTP/1.1 host:plesk860.com HTTP/1.1 200 OK Transfer-Encoding: chunked X-UA-Compatible: IE=EmulateIE7 <---!!! here it is Expires: Fri, 28 Aug 2009 00:56:35 GMT Expires: Fri, 28 May 1999 00:00:00 GMT Cache-Control: max-age=2592000 Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Last-Modified: Wed, 29 Jul 2009 00:56:36 GMT Pragma: no-cache P3P: CP="NON COR CURa ADMa OUR NOR UNI COM NAV STA" Content-type: text/html Date: Wed, 29 Jul 2009 00:56:36 GMT Server: sw-cp-server/1.0.0 3c4 <html><head><title></title> <script language="javascript" type="text/javascript" src="/javascript/common.js?plesk_version=psa-9.2.2-92090714.19"/></script> <script language="javascript" type="text/javascript" src="/javascript/prototype.js?plesk_version=psa-9.2.2-92090714.19"></script> <script> var opt_no_frames = false; var opt_integrated_mode = false; </script> </head><body onLoad=";top.location='/login.php3';"></body></html><!--______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________IE error page size limitation______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________--> 0 ^] telnet> quit Connection closed.
Btw, in Plesk 8.6 I did it by modifying main file (httpsd.conf) and it was also needed to add AddModule mod_headers.c directive:
Code:# pwd /usr/local/psa/admin/conf # diff httpsd.conf httpsd.conf.bak 232d231 < LoadModule headers_module libexec/mod_headers.so 259d257 < AddModule mod_headers.c 463,464d460 < Header set X-UA-Compatible "IE=EmulateIE7" <
I found this in another forum