存档

‘nginx’ 分类的存档

Nginx 常见应用技术指南[Nginx Tips] 第二版

2009年12月11日 2 条评论
分类: HTTP, nginx 标签: , ,

Nginx 一些内置的变量

2009年12月11日 没有评论

core module var:
$arg_PARAMETER
$args
$content_length
$content_type
$document_root
$document_uri
$host
$http_user_agent
$http_cookie
$is_args
$limit_rate
$query_string
$request_body_file
$request_method
$remote_addr
$remote_port
$remote_user
$request_filename
$request_uri
$scheme
$server_protocol
$server_addr
$server_name
$server_port
$uri
阅读全文…

收藏与分享
分类: HTTP, nginx 标签:

Nginx Location基本语法

2009年12月11日 没有评论

基本语法
location [=|~|~*|^~] /uri/ { … }
= 严格匹配。如果这个查询匹配,那么将停止搜索并立即处理此请求。
~ 为区分大小写匹配
~* 为不区分大小写匹配
!~和!~*分别为区分大小写不匹配及不区分大小写不匹配
^~ 如果把这个前缀用于一个常规字符串,那么告诉nginx 如果路径匹配那么不测试正则表达式。

例:
location = / { # 只匹配 / 查询。
location / { # 匹配任何查询,因为所有请求都已 / 开头。但正则表达式规则和长的块规则将被优先和查询匹配。
location ^~ /images/ { # 匹配任何已 /images/ 开头的任何查询并且停止搜索。任何正则表达式将不会被测试。
location ~* \.(gif|jpg|jpeg)$ { # 匹配任何已 gif、jpg 或 jpeg 结尾的请求。

阅读全文…

简单生活。简单运动

收藏与分享
分类: HTTP, nginx 标签: , ,

使用Nginx/Lighttpd作为反向代理服务器

2009年10月25日 没有评论

反向代理服务已经越来越广泛的应用于高负载的Web站点中,常用来作为Reverse Proxy的有Squid、Apache、Lighttpd、Nginx等,后两个轻量级的应用因为其优秀的表现已迅速占领了大量市场,本文只讨论后两者的简单应用(用proxy处理静态文件而把动态文件交给后端的Web服务器来处理)

安装环境
操作系统: Debian 4.0 r3
Kernel: 2.6.18-6-686
阅读全文…

收藏与分享

DELL R410 目前对RHEL/CETNOS系列支持不太好,需要自己手动去更新驱动。

2009年9月19日 2 条评论

dell官网服务器配置地址:Dell PowerEdge R410机架式服务器产品详细信息

http://www1.ap.dell.com/cn/zh/pub/Servers/server-poweredge-r410/pd.aspx?refid=server-poweredge-r410&s=pub

最新驱动地址:NetXtreme II 1 Gigabit Drivers

http://zh-cn.broadcom.com/support/ethernet_nic/netxtremeii.php

主要问题是:
1.网卡会自动掉线,手动更新驱动可以解决。
2.硬盘驱动也有问题,而且yum更新内核不能重启.直接报错.
阅读全文…

收藏与分享
分类: Linux web, nginx 标签: , , ,

A patch to fix VU#180065 vulnerability in 0.1.0-0.8.14

2009年9月19日 没有评论

Vulnerability Note VU#180065
Nginx ngx_http_parse_complex_uri() buffer underflow vulnerability
Overview
A vulnerability in the nginx web server may allow remote attackers to execute arbitrary code on an affected system.
I. Des-c-r-i-p-tion
阅读全文…

收藏与分享
分类: Linux web, nginx 标签: , , ,

Development versions are nginx-0.8.15, nginx/Windows-0.8.15, the change log.

2009年9月19日 没有评论

Changes with nginx 0.8.15 14 Sep 2009

*) Security: a segmentation fault might occur in worker process while
specially crafted request handling.
Thanks to Chris Ries.
阅读全文…

收藏与分享
分类: Linux web, nginx 标签: , , ,

The latest stable versions are nginx-0.7.62, nginx/Windows-0.7.62, the change log.

2009年9月19日 1 条评论

Changes with nginx 0.7.62 14 Sep 2009

*) Security: a segmentation fault might occur in worker process while
specially crafted request handling.
Thanks to Chris Ries.
阅读全文…

收藏与分享
分类: Linux web, nginx 标签: , , ,

[Nginx] apache rewrite转nginx经验–对大括号的支持

2009年9月2日 没有评论

在nginx中这样写规则

rewrite ^/([0-9]{5}).html$ /x.jsp?id=$1 last;

是无法启动的,解决的办法是加上两个双引号

rewrite “^/([0-9]{5}).html$” /x.jsp?id=$1 last;
阅读全文…

收藏与分享