Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including axle with all npm packages installed. Try it out:

var axle = require("axle")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

axle v0.2.1

An effortless HTTP reverse proxy for node

axle

An effortless HTTP reverse proxy for node

Installation

npm install -g axle

Usage

Run the axle server. This should run on the port you want all your web traffic to pass through.

$ PORT=8000 axle

or

$ sudo PORT=80 axle

Then run your node servers the way you usually would, but with axle before them.

$ axle caboose server

To specify a domain or multiple domains you would like to route to this server, use the AXLE_DOMAINS environment variable. This is a comma separated list of domains.

$ AXLE_DOMAINS=*.mattinsler.com,code.mattinsler.dev axle caboose server

License

Copyright (c) 2012 Matt Insler
Licensed under the MIT license.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free