https://github.com/lizhengnacl/host-proxy
map the port to 80
https://github.com/lizhengnacl/host-proxy
hosts port tool
Last synced: 2 months ago
JSON representation
map the port to 80
- Host: GitHub
- URL: https://github.com/lizhengnacl/host-proxy
- Owner: lizhengnacl
- Created: 2016-12-30T09:43:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-03-27T18:14:33.000Z (over 4 years ago)
- Last Synced: 2025-03-09T22:39:53.783Z (over 1 year ago)
- Topics: hosts, port, tool
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> Map the port to 80
config in the `host-port.md` file, and the run the command below
```
sudo node index.js
```
the `host-port.md` file looks like this.
```
#dev
127.0.0.1 oa.dev.neixin.cn 9002
127.0.0.1 oa.web.xm.test.sankuai.com 9002
127.0.0.1 qa.neixin.cn 9800
127.0.0.1 web.xm.test.sankuai.com 9800
127.0.0.1 test.admin.dev.neixin.cn 9003
127.0.0.1 admin.dev.neixin.cn 9005
#st
127.0.0.1 oa.xm.st.neixin.cn 9002
127.0.0.1 oa.st.neixin.cn 9002
127.0.0.1 test.xm.st.sankuai.com 9800
127.0.0.1 st.neixin.cn 9800
127.0.0.1 st.x.sankuai.com 9800
#pro
127.0.0.1 neixin.cn 9800
127.0.0.1 x.sankuai.com 9800
```