วันพุธที่ 17 กุมภาพันธ์ พ.ศ. 2553

Apache Mod setenvif

Some software/browser didn't follow the standard or have some bugs. I found that MSIE 6 have problem with richtext editor -javascript. Mod setenvif can be used to set special variable to correct the problem.



In file: /etc/apache2/mods-enabled/setenvif.conf
BrowserMatch "MSIE 4\.0b2;" gzip-only-text/html
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0

With this line apache the user with MSIE6 will be:
-send gzip format for text/html only
-disable keepalive
-downgraded request to HTTP 1.0
-response with HTTP 1.0

To find our more directive of this mod.
http://httpd.apache.org/docs/2.2/mod/mod_setenvif.html

There are more interesting variable that can be set.
http://httpd.apache.org/docs/2.2/env.html

ไม่มีความคิดเห็น:

แสดงความคิดเห็น