摘要: location 语法:location [=|~|~*|^~] /uri/ { … }默认:否 上下文:server 这个指令随URL不同而接受不同的结构。你可以配置使用常规字符串和正则表达式。如果使用正则表达式,你必须使用 ~* 前缀选择不区分大小写的匹配或者 ~ 选择区分大小写的匹配。 确定 哪个location 指令匹配一个特定指令,常规字符串第一个测试。常规字符串匹配请求的开... 阅读全文
posted @ 2009-07-22 18:32 麦飞 阅读(498) 评论(0) 推荐(0) 编辑
摘要: 1. alias_method Makes new_name a new copy of themethod old_name. This can be used to retain access to methods thatare overridden. Ruby代码 module Mod alias_method :orig_exit, :exit # Without alias_meth... 阅读全文
posted @ 2009-07-22 18:05 麦飞 阅读(568) 评论(0) 推荐(0) 编辑
摘要: http://www.javaeye.com/topic/413172 阅读全文
posted @ 2009-07-22 11:15 麦飞 阅读(132) 评论(0) 推荐(0) 编辑