引用
  新华网北京4月20日电 国务院决定,为表达全国各族人民对青海玉树地震遇难同胞的深切哀悼,2010年4月21日举行全国哀悼活动,全国和驻外使领馆下半旗志哀,停止公共娱乐活动。

  4月21日全国哀悼日,将去除网站全站所有站点色彩(变灰),悼念遇难同胞,愿死者安息。

  金山逍遥网旗下站点众多,虽然官网都有统一的页头、页尾,但是,还有一部分站点(例如用户中心、注册充值页面、游戏客户端内嵌网站、活动专题页等)页头、页尾不相同。但是,所有站点采用的都是Nginx服务器,95%以上的站点都经过Nginx负载均衡服务器,因此只需要在Nginx负载均衡服务器上,利用sub_filter指令在输出的HTML中增加一行:

<style type="text/css">html {filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); }</style>


  就可以实现在IE及IE内核浏览器下,所有网站变灰色。步骤如下:

  1、重新编译Nginx,增加http_sub_module模块:
wget http://nginx.org/download/nginx-0.8.35.tar.gz
tar zxvf nginx-0.8.35.tar.gz
cd nginx-0.8.35
./configure --user=www --group=www --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module
make && make install
pkill -9 nginx
/usr/local/webserver/nginx/sbin/nginx



  2、在nginx.conf配置文件的http {...}大括号内增加以下两行:
sub_filter  '</head>'  '<style type="text/css">html {filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); }</style></head>';
sub_filter_once on;


  保存后,重新加载配置文件:
/usr/local/webserver/nginx/sbin/nginx -t
/usr/local/webserver/nginx/sbin/nginx -s reload



  3、如果某些带有Flash的页面仍显示彩色,或浏览器上下滚动条拖动时Flash FLV播放器变花(例如剑网3、剑侠世界官网分流页),将Flash改为JS输出(本例为SWFObject):
<script type="text/javascript" src="http://v.xoyo.com/site/v.xoyo.com/web/js/swf.js"></script>
<div id="video_content"></div>
<script type="text/javascript">
<!--
    var video_player_so = new SWFObject("http://api.v.xoyo.com/external/player.swf?autostart=true&config=http://api.v.xoyo.com/external/video-542.swf", "sotester", "439", "246", "7");
    video_player_so.addParam("wmode", "opaque");
    video_player_so.addParam("allowfullscreen","true");
    video_player_so.addParam("allowscriptaccess","always");
    video_player_so.write("video_content");
//-->
</script>


  这样,整个页面,包括Flash播放器中的视频就都变灰色了。

  点击在新窗口中浏览此图片



  最后,借金山游戏停服公告,表达哀悼之情。
引用
各位尊敬的玩家,我们的兄弟姐妹:

  4月14日,青海玉树地区突发强烈地震,受难者数千,损失惨重。国务院宣布周三(4月21)日为青海省玉树县地震死难者的全国哀悼日,全国将降半旗致哀,暂停公共娱乐活动。金山游戏积极的在第一时间响应国家政策、怀着对灾区所有受灾人民的无限哀思,目前已经决定在4月21日凌晨零点至4月22日凌晨零点关闭旗下所有在运营中的游戏产品服务器,并沉痛的将各款游戏官方网站设置黑白。以此仅借绵薄之力尽无限哀恸之情。

  在提供给广大玩家游戏乐趣的同时,我们不能忘记灾区还有人民被压在瓦砾之下,我们不能忘记还有子弟兵用血肉模糊的双手去抢救我们的兄弟姐妹,我们更不能忘记举国上下无限沉痛的悼念之情。

  感谢我们的玩家给予我们对此决定的支持和理解。金山游戏将秉承提供给用户最好游戏体验的理念,将哀思化为振兴中华的力量,化为为祖国建设添砖加瓦的实际行动。目前,我们正在对停服期间感谢玩家支持的回馈做讨论,将以游戏内修为奖励的形式最终回馈给玩家,感谢你们对金山游戏一如既往的支持!具体发放方案敬请关注官网相关公告,以便及时领取!

  合十祷告,虔诚祝福,玉树坚强!

                    金山网络游戏运营团队全体员工
                       2010年04月20日


Tags:



技术大类 » Web服务器 | 评论(99) | 引用(2) | 阅读(72687)
polsnet
2010-8-15 00:49
又要用上这个了。
eve
2010-8-15 13:39
重新编译Nginx?
已经在提供服务中的服务器,重新编译nginx,不会出问题?
张宴 回复于 2010-8-16 09:48
Nginx可以平滑升级。
白癜风 Homepage
2010-8-20 11:04
泥石流又来了
linsu7696 Email Homepage
2010-9-7 07:44
Do you know who's input helps to make your favorite online game better? Is it the creative director? The executive producer? The lead game designer? Nopetrue religion, true religion jeans, special discount and free shippingwelcom to cooltruereligion . the place to find the best cheap deals on true religion,
jordan retro 14 Sale jordan retro 14 http://www.jordanmvp.com/air-jordan-14-shoes-15.html, true religion jeans. special discount and free shipping. all wrong there! It's your input that helps make the game better!
To that ends christian louboutin, cheap christian louboutin shoes for sale, 2010 new christian louboutin arrived!buy christian louboutin shoes up to 85% off, EverQuest 2 has a brand new in-game survey for players to fill out. If you're interested in offering your opinions on how the game is doing and what you'd like to see added or changedNice Kicks E Nice Kicks Store, Jordan Shoes,Air Jordans,Air Jordan NiceKickse is a professional website for Jordan Shoes and Air Jordan, we prov e many Cheap Jordan Shoes, Jordans Shoes, all Air Jordan Shoes at our  simply type /survey in your chat window next time you're logged in. The survey will pop up right in your game window with no muss or fuss.
One of the things they've mentioned as being discussed in the new survey is the concept of race change potions
点击在新窗口中浏览此图片
http://www.pickjordans.com/images/s/nike-air-jordan-4-black-cat-light-graphite-1.jpg
How would you feel if they offered players such a thing? Should they offer players the chance to change their race on their charactersnike shoes aaa quality,
women Louboutin shoes Sale women Louboutin shoes http://www.christianlouboutinsole.com, buy nike shoes aaa qualityAsiatrade Cn Sell Supra Shoes,Nike AF1&J13.  We Have The Brand:Nike, Jordan,Puma,AE,
air jordan 12 high strap Sale air jordan 12 high strap http://www.jordanmvp.com/air-jordan-12-shoes-13.html,Chanel And So On .If You Are Interested ,Pleased  We Offer Nike Jordan Shoes,
buy air jordan shoes Sale buy air jordan shoes http://www.jordan56.com/, Air max89, Nike Air Max 90nike Air Max 97, Nike Air Max  especially as race is tied into class? Speak your opinions hereair yeezy   nike air yeezy   cheap air yeezy shoesauthentic air yeezy shoes for discount, nike air yeezy retro for sell, nike air yeezy retro shoes,
air jordan 2 retro Sale air jordan 2 retro http://www.jordan56.com/air-jordan-2-c-2.html, nike air yeezy retro xi sneakers, nike air yeezy. but more importantly speak them in-game!
[Via Warcry]New Post:

  
   air jordan 10 TurpsterVision - Bricking It - Massi
  
   jordans 5 Veteran EverQuest 2 players weigh in on
  
   air jordans 2 SWTOR lead designer discusses combat
  
   nike air jordan 24 high THE EYE OF JUDGMENT SET 2-
  
   muska skytop EVE database issue causes thousands o
licen618 Email Homepage
2010-9-9 05:14
Earthrise is a new title that we haven't seen much of thus far beyond screenshots and concept art. StillNike air force,
jordan retro 3 Sale jordan retro 3 http://www.jordanmvp.com/air-jordan-3-shoes-3.html,Nike air jordan,NFL jerseys,Ad as shoes,Gucci Nike air force,Nike air jordan,NFL jerseys,Ad as shoes,Gucci shoes,Prada shoes,Puma shoes,Timberland boots,Timberland Shoes,We offer Nike air force,Nike  it's one that's holding the interest of a small but growing community, waiting to see if the game will offer an experience that's a far cry from a fantasy MMO. In making the game a departure from the fantasy genrechristian louboutin boots,
jordan 20 low Sale jordan 20 low http://www.jordan56.com/air-jordan-20-c-20.html, classic christian louboutin boots on sale.discount christian louboutin boots for sale, 2009 new boots arrived£?buy christian louboutin boots up to 85% off, free shipping ! the Earthrise creators at Masthead Studios have been fleshing out the game's lore and relaying it to potential fans through its own newsletters and some media exclusivesWholesale hottest nike jordan Sneakers brand new Gucci shoesBuy the latest nike jordan Sneakers or gucci shoes  we offer all kinds of  Shoes, Yves Saint Laurent, K , Ed Hardy, Evisu, Vesace,
cheap iPhone 4 black Sale cheap iPhone 4 black http://www.shopiphone4.us/, Supra, Puma,  2010 Puma Womens Shoes · Click To Browse 218 Items · Nike Air Jordan Retro 2 II  at IGN's RPG Vault in particular.
IGN continues its series of Earthrise previewss supra shoes we carry a large inventory from supra, including supra footwear,
nike jordan Sale nike jordan http://www.pickjordans.com/, supra shoes, supra skytop, and supra skate shoes. plus,
Supra Chad Muska Sale Supra Chad Muska http://www.nikesuprashoe.com/, many other running and basketball. focusing on the lore of the post-apocalyptic setting. That is to say the old world is deads supra shoes we carry a large inventory from supra, including supra footwear, supra shoes, supra skytop, and supra skate shoes. plus, many other running and basketball. wiped out in World War III. Those who weren't part of the Continoma-selected elite are either ash or reduced to slavering mutants prowling Enterra in search of their next meal. The previous piece titled Continoma: The Beginning focused on the corporate entity that rose to power and came to rule what was left of the earth following the near-annihilation of human society
点击在新窗口中浏览此图片
http://www.suprashoesale.com/images/Supra-Skytop-II-Blue-Black-Grey-Orange-Shoes.jpg
IGN now looks at what happened after the burn in "Continoma: The Rebirth." Check out their piece for the full story on the pioneers of Earthrise who work to rebuild society to utopian standardschristian louboutin boots   women's sexy boots   instablogschristian louboutin boots   women's sexy boots christian louboutin boots are one of the sexiest boots in women's wardrobe. these boots extend over the ankle and the anarchists who resist the order of this new establishment.New Post:

  
   Nike Dunk low YouTube your HAWX mission, enter to
  
   Air Jordan 15 Shoes RSL enjoying familiar faces  &
  
   Vibram Five Fingers Kso Trek The PlayStation Recap
  
   Designer Coach bags Reverse Carnival – Submi
  
   new jordan shoes ZEN Pinball coming to PSN next Th
smarthand Homepage
2010-10-16 10:21
虽然不是用来做这个事情,但是实现思路提示了我,谢谢!grin
电子书 Email Homepage
2010-11-4 09:05
不错~
parmixzxvm Email Homepage
2010-11-16 12:58
I'm agree with this view Synthetic Lace Wigs,
caiseucxhz Email Homepage
2010-11-23 09:04
发现MM是个性情中人 lace front wigs,用文字记录内心的感受,很是佩服!而我却与你相反,想的到,等座下来时却什么也写不出
threemnnj Email Homepage
2010-12-11 17:05
little hand flick tudor watches, three hand; mobile soy sauce, bow Meng go!
yy
2010-12-23 10:03
经过百余年的借鉴、融合、探索、创造的中国油画,在新世纪更显现出融入中华民族血液的自觉意识,人文精神的高扬及对现实的关怀,题材内容、形式风格和手法的多样化成为当代油画家的重要特征。此信息由
西安人才网:http://www.xa198.com
中国画廊网:http://www.hl198.com  
中国画家网:http://www.rc900.com
提供!
近日,“今日之神话——庞茂琨个展”在上海美术馆开幕。2009-2010年创作的近20幅油画作品,以及60幅这些油画创作的部分草图、手稿等,构成了被誉为“天才学院画家”的庞茂琨在内地的首次大型个展。
最好的巧克力品牌 Homepage
2011-2-25 17:24
最好的巧克力品牌
<a href=http://www.seo5200.com>最好的巧克力品牌</a>
seo52002011353761593-2011.2.25
puma shoes Email Homepage
2011-3-2 00:29
高手的文章读起来就是不一样,给力!www.buypumashop.com
未知 Homepage
2011-8-26 14:45
一直用PHPSTUDY 你那个也没怎么用啊  可能是不兼容的问题吧!
我的博客
如何制作网站呢/
宜都社区 Email Homepage
2011-9-30 03:45
@wwek128内存的 静态页面 几千并发数。 php页面几十并发数应该没问题·nginx 进程为一个,phpcgi开的2个。我也看到张大侠 买的 瑞豪的 挂的一个博客··给你看看我的~ 新加一个虚拟主机~server      {        listen 80;        server_name status.iamle.com;        location / {         stub_status on;         access_log   off;                   }加到大括号中就ok了。然后就可以用监控宝什么的监控了·------------listen  80;    server_name  status.blog.s135.com;    location / {      //这句话意思在/目录下么? 难道我设置问题?    stub_status on;              access_log   off;                }//location / 这里的 就表示作用于  http://status.blog.s135.com/--------------------你可以算下。 每秒20的访问人数。算算一天能多少ip?如果是静态的就更完美了。 128内存也是刚刚的~~ 是根据这个算的么?如果同时在线人数超多,如何处理得过来?
hennan6692 Email Homepage
2011-9-30 08:15
Lycos Home | Lycos Mail,Monogram Vernis

NEW,Bagages Roulants! Follow us ashore Twitter @LycosDeals

Watering Made Easy Sprinkler Station for $12

BlackBerry PlayBook 16GB Tablet $300,Sac Longchamp Broderie / Ville, more

Calvin Klein: 40% off sitewide

Columbia Unisex Chronograph Watch $40
  
Last Call at Neiman Marcus: 41% off

Perry Ellis Men's Suits from $100,Toile Damier Eb��ne, more

Oakley Women's Sunglasses for $50

Sears: 50-60% off mattresses + 10% off

Maylong M-250 7" WiFi Android Tablet for $97

VisionDirect: 25% off Halloween contacts

VistaPrint.com: Custom T-shirt for free

Portable Folding Table and Bench Set for $20

Wenzel Kodiak 4-Person Tent because $35

Mac micro Core 2 Duo Desktops from $469

Display:

$469

+ free shipping
杭州滨江注册公司 Email Homepage
2011-10-23 23:07
这个东西好好
杭州滨江注册公司 Email Homepage
2011-10-23 23:07
羡慕有服务器
louis vuitton uk Email Homepage
2011-11-22 16:59
Louis Vuitton is one of the world's leading international fashion houses.The catching styles and upmarket qualities endeared louis vuitton uk to almost everyone.louis vuitton Store Online Handbags can also bring great accuracy as well as practical applicability and fashionable.
louis vuitton uk Email Homepage
2011-11-23 09:13
This louis vuitton uk for sale belongs to the sounding just what are termed as Louis Vuitton vintage best sellers, many other products and services for the reason that range appearing companies.You will easily notice the unfold zippers of this coach outlet store online. That is the decoration. There are some inside pockets for you as well. They are easy to match your clothes and to carry.Let us inspire your inner beauty with fine christian louboutin sale. Purse the elegance in bridal wedding. Enjoy the fashion.
分页: 3/6 第一页 上页 1 2 3 4 5 6 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]