If you are willing to help hiproxy to write documentation, please contact firstname.lastname@example.org, thank you!
Hosts can be thought as enhanced
hosts of OS, Its most important feature is port forwarding.
Note: hiproxy support both
hosts file and
hosts is a simple solution so that it supports only forwarding domain & port. If you want custom complex forwarding rules, see rewrite as referrence.
Hiproxy will parse
hosts files in the projects’ immediate directories while it starts. The proxy server would forward received requests according to rules in
- Port forwarding;
hostsfile of project is used to instead of OS one and avoid system cache issue;
- You do NOT need to restart hiproxy after modifying
hostsfile. Hiproxy can restart and refresh
The syntax of project
hosts is very similar as OS one. Supporting IP+port is the only difference. The syntax is:
IP[:port] domain1 domain2 domain3 ... domainN
# custom hosts with port :)