有没有办法将网址重定向到本地服务器?
与http://example.com/1.js
到http://localhost/1.js
一样,不使用hosts
更改node js
文件。
答案 0 :(得分:0)
要在Windows上配置apache,请参阅此链接proxy on windows
要在UBUNTU上配置apache,请参阅此链接
Apache2 reverse proxies
Apache proxy on ubuntu
在下面的代码中, 如果我访问localhost / http-bind。它将命中localhost:5280 / http-bind /
ProxyPass /http-bind http://localhost:5280/http-bind/