Blog

Blog

PHODAL

Nginx 1.7 更新记

起源于对于更好的一个http服务器版本的追求。。。果然是开发者,而不是运维人员。

Nginx 1.7

这个版本的时间是2014年4月24号。

关于nginx 1.7.0的一些新的特性

  • Feature: backend SSL certificate verification.
  • Feature: support for SNI while working with SSL backends.
  • Feature: the $ssl_server_name variable.
  • Feature: the "if" parameter of the "access_log" directive.

于是

  • 后端SSL证书验证。
  • 当使用SSL后端工作SNI支持。
  • $ ssl_server_name变量。
  • "access_log"的"if"指令的参数。       

关于SNI

SNI是Server Name Indication的缩写 意思是:multiple SSL sites on a single IP address 即支持多个SSL加密站点共同使用一个IP

Nginx 1.7编译

tar zxvf nginx-1.7.0.tar.gz
cd nginx-1.7.0/
./configure --user=www --group=www --add-module=../nginx-static-etags --prefix=/usr/local/nginx --with-pcre --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ipv6
make
sudo make install

如果你是和我一样用的是lnmp的话,那么还需要

mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.old
cp objs/nginx /usr/local/nginx/sbin/nginx

然后

/etc/init.d/nginx restart

测试一下

$curl -I www.phodal.com

HTTP/1.1 200 OK
Server: nginx/1.7.0

关于我

Github: @phodal     微博:@phodal     知乎:@phodal    

微信公众号(Phodal)

围观我的Github Idea墙, 也许,你会遇到心仪的项目

QQ技术交流群: 321689806
comment

Feeds

RSS / Atom

最近文章

关于作者

Phodal Huang

Engineer, Consultant, Writer, Designer

ThoughtWorks 技术专家

工程师 / 咨询师 / 作家 / 设计学徒

开源深度爱好者

出版有《前端架构:从入门到微前端》、《自己动手设计物联网》、《全栈应用开发:精益实践》

联系我: h@phodal.com

微信公众号: 最新技术分享

标签