起源于对于更好的一个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
或许您还需要下面的文章: