Skip to content

Commit

Permalink
Fixed wrong language highlight identifier #20
Browse files Browse the repository at this point in the history
  • Loading branch information
oopsguy committed Feb 4, 2019
1 parent 6616926 commit 3f1f6dc
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 7 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,24 @@ Nginx 官方文档中文翻译版,由本人在学习 nginx 时顺带翻译。

在线阅读:[Github](https://github.com/DocsHome/nginx-docs/blob/master/SUMMARY.md) | [GitBook](https://www.gitbook.com/book/docshome/nginx-docs/details)

## 安装

如果你没有安装 gitbook,则先使用 npm(或者 cnpm)安装 `gitbook-cli`

```shell
npm install gitbook-cli -g
```

进入项目根目录,执行以下命令运行 gitbook:

```shell
gitbook install
```

```shell
gitbook serve
```

## 项目状态

翻译中……
Expand Down
2 changes: 1 addition & 1 deletion 模块参考/http/ngx_http_core_module.md
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ server {

也可以在服务器名称中使用正则表达式,在名称前面加上波浪号(``):

```ngixn
```nginx
server {
server_name www.example.com ~^www\d+\.example\.com$;
}
Expand Down
2 changes: 1 addition & 1 deletion 模块参考/http/ngx_http_grpc_module.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ grpc_bind $remote_addr transparent;

设置 gRPC 服务器地址。该地址可以指定为域名或 IP 地址以及端口:

```ngixn
```nginx
grpc_pass localhost:9000;
```
或使用 UNIX 域套接字路径:
Expand Down
2 changes: 1 addition & 1 deletion 模块参考/http/ngx_http_limit_conn_module.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ server {
用法示例:

```ngixn
```nginx
limit_conn_zone $binary_remote_addr zone=addr:10m;
```

Expand Down
2 changes: 1 addition & 1 deletion 模块参考/http/ngx_http_limit_req_module.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ server {
用法示例:

```ngixn
```nginx
limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
```

Expand Down
6 changes: 3 additions & 3 deletions 模块参考/http/ngx_http_perl_module.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ http {

The perl/lib/hello.pm module:

```pm
```perl
package hello;

use nginx;
Expand Down Expand Up @@ -163,7 +163,7 @@ __END__
如果请求中没有请求体,则返回 0。如果存在,则为请求设置指定的处理程序,并返回 1。在读取请求体后,nginx 将调用指定的处理程序。请注意,处理函数应该通过引用传递。例:
```pm
```perl
package hello;
use nginx;
Expand Down Expand Up @@ -267,7 +267,7 @@ __END__
设置指定的处理程序(`handler`)和指定停止请求处理的时间(`milliseconds`)。在此期间,nginx 继续处理其他请求。在经过指定的时间后,nginx 将调用已安装的处理程序。请注意,处理函数应该通过引用传递。为了在处理程序之间传递数据,应使用 `$r->variable()`。例:
```pm
```perl
package hello;
use nginx;
Expand Down

0 comments on commit 3f1f6dc

Please sign in to comment.