1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

[HOWTO] Internet Explorer 8 Compatibility

Discussion in 'Plesk for Linux - 8.x and Older' started by Manuel Mitteregger, Apr 8, 2009.

  1. Manuel Mitteregger

    Manuel Mitteregger Basic Pleskian

    24
    73%
    Joined:
    Apr 8, 2009
    Messages:
    29
    Likes Received:
    0
    Location:
    DACH
    Hello everyone,

    we've got some issues here with internet explorer 8 and our clients, which cannot work with plesk anymore after updating to microsofts new browser.
    It's bad for customers, if they have to start compatibility mode for internet explorer 7 in their browser so here is a simple bugfix.

    Goto /opt/psa/admin or /usr/local/psa/admin (just where your plesk installation is)
    and move into directory conf.

    Create a file "httpsd.ie8comp.include" and insert the following:
    LoadModule headers_module libexec/mod_headers.so
    Header set X-UA-Compatible "IE=EmulateIE7"


    Works just fine for our servers. This solution is tested with plesk 7 and plesk 8 - NOT WORKING WITH VERSION 9.

    Best Regards from Austria!
    Manuel :)
     
  2. JTRipper

    JTRipper Regular Pleskian

    27
     
    Joined:
    Mar 22, 2006
    Messages:
    106
    Likes Received:
    3
    Location:
    Italy
    Great Idea,

    but for windows version ?
     
  3. Manuel Mitteregger

    Manuel Mitteregger Basic Pleskian

    24
    73%
    Joined:
    Apr 8, 2009
    Messages:
    29
    Likes Received:
    0
    Location:
    DACH
    Hi,

    as I don't work with Plesk for Windows I do not know how to do it. But you could give me access to your server and I'll check it ;-)

    Plesk uses now it's own webserver (starting up from version 9.0) and there is now way (as it seems to me know) to put in a ie-8-compliant code.


    Manuel
     
  4. realaaa@

    realaaa@ Basic Pleskian

    23
    70%
    Joined:
    Mar 16, 2006
    Messages:
    67
    Likes Received:
    0
    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"
    <
     
  5. realaaa@

    realaaa@ Basic Pleskian

    23
    70%
    Joined:
    Mar 16, 2006
    Messages:
    67
    Likes Received:
    0
    btw, JTRipper, I think in Windows it should be even simpler since usually Plesk CP is just another virtual host in IIS (if you haven't switched it to Apache of course). And as I understand it is possible to add custom header to output in IIS as well.

    Although I didn't do it in Windows so I can't advise anything specific on this matter.
     
  6. KingSky

    KingSky New Pleskian

    23
     
    Joined:
    Mar 10, 2005
    Messages:
    17
    Likes Received:
    0
    Plesk also has a knowledgebase article on doing this here:
    http://kb.odin.com/en/6561

    Pretty much the same instructions as above though :)
     
  7. Manuel Mitteregger

    Manuel Mitteregger Basic Pleskian

    24
    73%
    Joined:
    Apr 8, 2009
    Messages:
    29
    Likes Received:
    0
    Location:
    DACH
    hi guys,

    I know the official plesk article and I think it's pretty funny that Parallels uses user-comment's, but they never do anything like a "thank you"...

    It's really sad, that they don't communicate with their customers (like forum users)

    manuel
     
  8. realaaa@

    realaaa@ Basic Pleskian

    23
    70%
    Joined:
    Mar 16, 2006
    Messages:
    67
    Likes Received:
    0
    oh, don't worry, Manuel, I myself asked to create that KB article for everybody's sake, and I did get my "thanks" :)
     
  9. lvalics

    lvalics Silver Pleskian Plesk Guru

    36
    43%
    Joined:
    Jun 20, 2003
    Messages:
    965
    Likes Received:
    32
    Location:
    Romania
    but is still strange why a patch is not out yet.
     
  10. realaaa@

    realaaa@ Basic Pleskian

    23
    70%
    Joined:
    Mar 16, 2006
    Messages:
    67
    Likes Received:
    0
    and yes, I did mention this topic so your input is as well appreciated!

    indeed, Plesk updates are not as frequent as we wish, I hope this will be changed to Virtuozzo policy - monthly updates.
     
  11. sreese

    sreese Guest

    0
     
    Hello,

    I could really use a solution to this that works for Plesk in Windows. I tried adding the custom header in IIS but that doesn't seem to work. Any ideas?

    Thanks,
    Scott
     
  12. sreese

    sreese Guest

    0
     
    ...and of course right after I submit my first post, I figure it out. :)

    In case anyone else happens across this article and wonders how to get this to work for Windows, here's how:

    1) Open up IIS Manager
    2) Find PleskControlPanel under Web Sites, right-click and select Properties
    3) Go to the Http Headers tab and click Add
    4) For "custom header name" put in "X-UA-Compatible" (without the quotes) and for "custom header value" put in "IE=EmulateIE7" (again without the quotes) and click OK, then Apply.

    You might need to restart the web site for it to take effect. This works in IIS 6 with Windows 2003 Server.
     
Loading...