由于负载均衡会转发客户端的请求到web服务器,所以web服务往往记录的是负载均衡的IP,现在可以通过下面的配置,让apache记录真实客户端IP语法#LogFormat“\”%{X-Forwarded-For}i\”%l%t\"%r\"%>s%b\"%{Referer}i\"\"%{User-Agent}i\""combined普通日志和记录客户端IP的apac..
分类:
Web程序 时间:
2014-12-18 19:06:28
阅读次数:
295
org.mockito.exceptions.misusing.InvalidUseOfMatchersException: Invalid use of argument matchers!3 matchers expected, 2 recorded:-> at com.FilterDevice...
分类:
其他好文 时间:
2014-12-16 13:19:07
阅读次数:
1031
直接上代码<<!DOCTYPEHTML>
<html>
<head>
<linkhref="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css"rel="stylesheet">
<linkrel="stylesheet"type="text/css"media="screen"
href="http://tarruda...
分类:
Web程序 时间:
2014-11-25 18:56:54
阅读次数:
305
先上html代码<!DOCTYPEHTML>
<html>
<head>
<linkhref="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css"rel="stylesheet">
<linkrel="stylesheet"type="text/css"media="screen"
href="http://tarruda.gi..
分类:
Web程序 时间:
2014-11-25 18:52:43
阅读次数:
202
restorecon-Rv/srv/恢复http权限(如果默认不是http的,可以用semanagefcontext)/etc/httpd/conf.d/00vhost.conf<VirtualHost*:80>DocumentRoot/srv/default/wwwCustomLog"logs/default-vhost.log"combined</VirtualHost><Directory/srv/default/www>Requir..
分类:
Web程序 时间:
2014-11-01 06:29:35
阅读次数:
364
The class styles define additional elements of the window class. Two or more styles can be combined by using the bitwise OR (|) operator. To assign a ...
分类:
其他好文 时间:
2014-09-19 23:40:26
阅读次数:
300
1960年出现了一种面向问题的高级语言ALGOL 60 。 1963年英国剑桥大学推出了CPL(Combined Programming Language)语言,后来经简化为BCPL语言。 1970年美国贝尔(Bell)实验室的K.Thompson以BCPL语言为基础,设计了一种类似于BCPL的语言...
分类:
编程语言 时间:
2014-09-14 00:07:06
阅读次数:
196
写一个程序判断字符串A是否为其他两个字符串的组合,组合过程中其他两个字符串的相对顺序不能被破坏。 举例说明:abc和def可以组成字符串adebcf,但不能组成aefbcd,因为def的相对顺序已经被破坏。本题直接从string A入手loop配对即可,代码如下。 1 /***********...
分类:
其他好文 时间:
2014-09-10 17:22:10
阅读次数:
293
Apache日志不记录图片文件设置方法SetEnvIMAG 1CustomLog logs/access_log combined env=!IMAGApache日志,如果记录所有访问请求,文件会很大;如果使用日志分析软件,分析结果不一定准确。而且如果不安装cronolog工具来截断日志,会在一个整...
分类:
其他好文 时间:
2014-07-22 00:20:35
阅读次数:
397
plist 中的每一页 utteranceSting 我们都创建了一个RWTPage.displayText。因此,每页的文本会一次性地显示出来。由于You’ve constructedeach RWTPage.displayTextfrom the combined utteranceStringsfor the page in the plist. So, your page view dis...
分类:
移动开发 时间:
2014-07-12 17:28:28
阅读次数:
315