09 2012 档案

摘要:在rewriterule后加上参数[P] P表明force proxy,需要mod_proxy以及根据相应协议的proxy模块比如mod_http_proxy 实际上这个时候apache就充当了反向代理的功能。 “A reverse proxy is activated using the ProxyPass directive or the [P] flag to the RewriteR... 阅读全文
posted @ 2012-09-19 18:50 donj 阅读(928) 评论(0) 推荐(1)
摘要:恩 需要获得上上自然周的日期 google了半天,也没找到解决办法 甚至没有对date –d 详细说明的文档 自己尝试了下,可以这么做 date -d "-2 week monday" 有空需要详细了解下 date -d的STRING参数规范 阅读全文
posted @ 2012-09-18 12:11 donj 阅读(1312) 评论(0) 推荐(0)
摘要:1.创建表的语句: Create [EXTERNAL] TABLE [IF NOT EXISTS] table_name [(col_name data_type [COMMENT col_comment], ...)] [COMMENT table_comment] [PARTITIONED BY (col_name data_type [COMMENT col_comme... 阅读全文
posted @ 2012-09-12 18:14 donj 阅读(459) 评论(0) 推荐(0)
摘要:nginx中对POST数据的读取是异步进行的,也就是说你不必在content handler中等待数据读完然后返回。对客户端的响应是通过:ngx_http_send_header(r); ngx_http_output_filter(r,&out);两个调用完成,content handler的return并不意味着请求处理的完成。既然是异步调用,而且caller可以立即返回,那就意味着需要定义一个回调函数:typedef void (*ngx_http_client_body_handler_pt)(ngx_http_request_t *r)真正进行数据读取的是这个函数ngx_ht 阅读全文
posted @ 2012-09-07 17:21 donj 阅读(6984) 评论(1) 推荐(0)