<div dir="ltr"><font face="georgia,serif">msie_padding is set to on by default (and I didn't change it). Today I added this line to my location php block:<br></font><div style="font-family:georgia,serif"> if ($http_user_agent ~ "MSIE 6" ) {</div>
<div style="font-family:georgia,serif"> return 403 "Browser not supported. Please update or change to another one.";</div><div style="font-family:georgia,serif"> }</div><div style="font-family:georgia,serif">
<br></div><div style="font-family:georgia,serif">So now it is:</div><div><font face="georgia,serif"><div>location ~ \.php$ {</div><div> try_files $uri =404;</div><div> fastcgi_split_path_info ^(.+\.php)(/.+)$; </div>
<div> include /etc/nginx/fastcgi.conf;</div><div> fastcgi_pass unix:/var/run/php5-fpm.sock;</div><div> if ($http_user_agent ~ "MSIE 6" ) {</div><div> return 403 "Browser not supported. Please update or change to another one.";</div>
<div> }</div><div style>}<br><br>It works (with curl and a IE6 user-agent I get my custom error message), the problem is that IE6 (real browser) displays its default error page (because my message is < of 512 bytes). But msie_padding on should "fix" that, am I wrong?<br>
<br>If I change the error to something longer it works! For example I set one (in italian, sorry): "Internet Explorer 6.0 non e' supportato. Per poter visualizzare il sito aggiorna ad una versione successiva o installa un browser alternativo (Google Chrome, Mozilla Firefox, Opera ...)." and it displays my error.</div>
</font></div></div>