# nginx-port **Repository Path**: pharaoh/nginx-port ## Basic Information - **Project Name**: nginx-port - **Description**: 使用一个外网端口转发到不同的内网端口 - **Primary Language**: C - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 37 - **Forks**: 7 - **Created**: 2014-09-28 - **Last Updated**: 2024-01-10 ## Categories & Tags **Categories**: nginx-modules **Tags**: None ## README #nginx-port ##说明 * nginx的配置文件,功能是将 http://12345.test.com 的访问转换为内网 http://127.0.0.1:12345 的访问。 * 端口号跟随域名变化。 ##使用 * 绑定的域名修改配置文件nginx.conf 中的此行: server_name *.test.com; * 可以申请免费域名或者直接在host文件中进行配置访问。