- 博客(8)
- 收藏
- 关注
tomcat read correct request server name behand apache
I need read requested server name in jsp (tomcat container), because tomcat is behind apache, and apache use proxypass, so the tomcat can only read request.getServerName() got 'localhost'. We can ...
2012-03-28 17:09:56 104
原创 create maven repository and use curl upload file
We can use Nexus to build maven repository: http://kidsmopi.iteye.com/blog/232554 Here is a quick example to upload with curl curl --write-out "\n\nStatus Code: %{http_code}\n\n"' "...
2012-03-28 11:22:44 152
原创 tomcat配置禁止url显示jsessionid
It is possible to do this in Tomcat 6.0 with: disableURLRewriting http://tomcat.apache.org/tomcat-6.0-doc/config/context.html e.g. 写道 < Context docBase="PATH_TO_WEBAPP" path="/CONT...
2012-03-27 16:57:44 766
原创 脚本报错:sudo: no tty present and no askpass program specified
sudo will only run a program as a different user if one of these 3 conditions has been met (as far as passwords are concerned): the NOPASSWD option is specified the user entered the correct targe...
2012-03-26 14:46:19 374
原创 使用java连接https的问题
在使用hudson的过程中,我们需要发送邮件的功能。但是公司的邮箱是需要ssl加密的,这样仅仅配置邮件地址,点击发送测试邮件的时候,就会报java exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.sec...
2012-03-19 15:41:10 140
探寻vip不启动的原因
今天发生了一个服务器down的问题:ping应用服务器有正常回应,ping VIP失败,我们就想当然的认为是VIP的问题,把问题抛给network engineering team。 很快,他们把皮球踢出来了:是由于应用服务器的health check没有启动,造成VIP down。我们检查了一下应用服务器,确实是tomcat启动了,但是apache没有启动,造成health check没...
2012-03-07 10:48:07 138
原创 为什么要迁移到git
最近谈到版本控制,所有人都在谈Git。当然随意的谈论并不能让你下定决心迁移到Git。这里列出了八条有分量的理由,让你加入Git阵营。 1. 快速 如果你每移动一下鼠标都要等待五秒,是不是很受不了?版本控制也是一样的,每一个命令多那么几秒钟,一天下来也会浪费你不少时间。Git的操作非常快速,你可以把时间用在别的更有意义的地方。 更多统计数据,请看 www.wh...
2012-03-05 10:41:06 85
原创 迁移cvs版本库到git
使用git cvsimport工具进行导入。 1) Make sure you have git-core package installed on your local machine and it includes the git-cvsimport command. To check: [$local]: git help -a | grep cvsimport cv...
2012-03-05 10:38:57 270
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人