joewright / local-proxy

Redirect local web traffic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Local web proxy

This server redirects all requests to the specified --base-url.

It was made to test domain-dependent web apps on a local network without having to modify other computers' hosts file.

Setup

Requirements

  • nodejs 7.x

Clone this project and from the project directory run

npm install

Usage

Run the server like so:

node server.js --base-url=http://my-cool-webserver.localtld:4234 --port=5309
# then visit http://localhost:5309

About

Redirect local web traffic


Languages

Language:JavaScript 100.0%