# apiProxy **Repository Path**: JohnnyLiang/apiProxy ## Basic Information - **Project Name**: apiProxy - **Description**: api代理 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-12-12 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # node-proxy 简易版node反向代理 ## 使用方法 ``` git clone https://git.oschina.net/qq15725/node-proxy.git cd node-proxy // 打开`index.js`里根据需求配置你的代码,(配置在下方) node index.js ``` 这样反向代理服务器就开启了,之后就将你要请求的主机和端口改成下方配置的`host`和`port`就可以了。 例如 原本你的请求地址为 `http://www.acishan.com:80/nimahai` 那么你开启反向代理之后你可以如下请求 `http://localhost:4040/nimahai` - host: 你要请求的目标主机 - port: 目标主机端口 - proxyPort: 本地代理服务器端口 ## 有那些坑 问我 🙇