Skip to content

Commit 7e2d058

Browse files
committed
trans faq
1 parent 0da8988 commit 7e2d058

File tree

1 file changed

+26
-27
lines changed

1 file changed

+26
-27
lines changed

source/faqs/index.md

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
title: FAQs
22
---
33

4-
### hiproxy的核心目的/功能是什么?
4+
### What's the core feature(or purpose) of hiproxy?
55

6-
hiproxy的核心功能是代理请求,主要是为了解决前端开发工程师在本地开发过程中遇到的:
6+
The core feature of hiproxy is forwarding request. Hiproxy purposes to solve some problems which front-end developer can meet while working:
77

8-
- `hosts`修改后由于DNS缓存不能立刻生效
9-
- 需要使用Nginx来做反向代理
10-
- 自签名HTTPS证书不受信任
11-
- 每个人都在本地维护环境配置文件(hosts/Nginx配置)
8+
- `hosts` cannot work immediately since there are caches after it's updated.
9+
- Nginx is used for reverse proxy.
10+
- Self signed HTTPS certificate are not trusted.
11+
- Everyone maintans the environment profile (hosts/nginx configuration).
1212
- ...
1313

1414
<br/>
1515

16-
### hiproxy跟Charles/Fiddler有什么区别?
16+
### What's the difference between hiproxy and Charles/Fiddler?
1717

18-
hiproxy跟Charles/Fiddler都有抓包、请求代理的功能,很多核心的功能基本类似。只不过hiproxy是一个命令行的工具,使用配置文件来配置。
18+
They all have the ability to capture packages, proxy request and many core function. But hiproxy is a CLI tool which works with configuration files.
1919

20-
此外,hiproxy现在没有查看网络请求的具体内容的界面,将来会通过插件开发,敬请期待。
20+
However, hiproxy has no interface to see the specific content of request. That will be introduced as a plugin in the future.
2121

2222
<br/>
2323

24-
### hiproxy的hosts跟系统hosts有什么关系
24+
### What's the relationship between hosts for hiproxy and for OS
2525

26-
hiproxy的hosts跟系统hosts文件本身没有任何关系。
26+
They are no relationship actually.
2727

28-
hiproxy的hosts文件一般存放在项目中,或者其他目录(根据用户情况自己决定放到哪里)。hiproxy代理服务启动的时候,会查找并解析这些hosts文件,**不会去查找解析系统hosts**
28+
the hosts file for hiproxy is normally placed in project directory, or other (user specified) directory. Hiproxy would looking for, load and parse the hosts file in project directories, **but not do with OS one**.
2929

3030
<br/>
3131

32-
### hiproxy的rewrite配置文件完全兼容Nginx配置吗?
32+
### Is the rewrite configuration file for hiproxy fully compatible with Nginx configuration?
3333

34-
不兼容,hiproxy的rewrite规则配置文件跟Nginx的配置文件本身没有任何关系。
34+
No. They are no relationship actually.
3535

36-
从语法上看,hiproxy的rewrite配置文件借鉴了Nginx配置的语法。核心的语法跟Nginx的语法一致,但是也有些语法是hiproxy特有的,并不完全跟Nginx语法一致,比如:
36+
The rewrite configuration for rewrite has similar syntax of Nginx configuration. The core syntax is consistent with the syntax of Nginx, but there are also some syntax are specific to hiproxy. They are not exactly consistent with Nginx syntax. For example:
3737

3838
```bash
3939
# base rule
@@ -45,36 +45,35 @@ hiproxy.org => {
4545
}
4646
```
4747

48-
此外,也有部分指令采用Nginx的指令名称且功能基本类似,比如`proxy_pass``set``ssl_certificate``ssl_certificate_key`等。但是也**不保证所有的功能细节跟Nginx的指令保持一致**。详细的指令功能说明请参考[指令](../rewrite/directive.html)
48+
In addition, some directives come from Nginx which do simular things, such as `proxy_pass`, `set`, `ssl_certificate` and `ssl_certificate_key`, etc. In any case they **cannot promise that all details are same as Nginx directives.**Please see [Directive](../rewrite/directive.html) for more information.
4949

5050
<br/>
5151

52-
### hiproxy多个项目中的不同配置文件使用相同的域名吗?
52+
### Are different configuration file used in multiple hiproxy projects using the same domain name?
5353

54-
支持。
54+
It's supported.
5555

56-
可以在不同的项目的不同配置文件中,给相同的域名配置代理规则。hiproxy会自动合并相同域名的规则,如果路由配置有冲突,后加载的配置文件的规则会覆盖前面的规则。
56+
You can set rules for the same domain name in configuration files of different projects. Hiproxy can merge all rules about the same domains. If there is conflict, later loaded rules would rewrite earlier rules.
5757

5858
<br/>
5959

60-
### hiproxy怎么处理多个配置文件中的规则冲突?
61-
62-
详细的配置规则处理文档正在编写。
60+
### How does hiproxy handle the conflict between multiple configuraton files?
6361

62+
Some soon.
6463

6564
<br/>
6665

67-
### hiproxy根证书怎么获取/导入
66+
### How to get/import root certificate of hiproxy
6867

69-
可以查看文档[获取/导入SSL证书](../configuration/ssl_certificate.html)
68+
See [get/import SSL certificate](../configuration/ssl_certificate.html)
7069

7170
<br/>
7271

73-
### hiproxy中如何使用自己的SSL证书
72+
### How hiproxy to use it own SSL certificate
7473

75-
默认情况下,在代理https请求的时候,hiproxy会**自动生成证书**,并使用hiproxy自定义的CA证书签名。用户只需要导入hiproxy的根证书。
74+
By default, when the https request is forwading, hiproxy will **generate the certifiate automatically** and use customized CA certificate signature. The users should import root certificate of hiproxy.
7675

77-
如果用户需要使用自定义的证书,可以·使用hiproxy提供的指令来配置:
76+
If you use customized certificate, ou can use some hiproxy directive for configurating:
7877

7978
```
8079
ssl_certificate ./hiproxy.org.crt;

0 commit comments

Comments
 (0)