# api.wanglvlong.top **Repository Path**: wanglvlong/api.wanglvlong.top ## Basic Information - **Project Name**: api.wanglvlong.top - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-10-07 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README localhost:3000 localhost:3001 nginx 详细情况: 功能预期: 访问 api.wanglvlong.top/waimai/ 直接跳转到 localhost:3000 访问 api.wanglvlong.top/boss/ 直接跳转到 localhost:3001 修改配置: node 服务器:修改监听端口 nginx:修改配置: location ~ /api/waimai/ { proxy_pass http://localhost:3000; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr; #proxy_cache cache_one; #proxy_cache_key $host$request_uri$is_args$args; #proxy_cache_valid 200 304 301 302 1h; add_header X-Cache \$upstream_cache_status; expires 12h; } location /waimai/ { proxy_pass http://localhost:3000/; } location /boss/ { proxy_pass http://localhost:3001/; } 问题: 始终,报错, 原因: 外卖api的端口未改成3000, proxy_pass 加/