Skip to content

Instantly share code, notes, and snippets.

@msonnabaum
Created December 6, 2011 20:56
Show Gist options
  • Save msonnabaum/1439961 to your computer and use it in GitHub Desktop.
Save msonnabaum/1439961 to your computer and use it in GitHub Desktop.
var httpProxy = require('http-proxy');
httpProxy.createServer(function (req, res, proxy) {
req.headers['pragma'] = 'akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key, akamai-x-get-extracted-values, akamai-x-get-nonces, akamai-x-get-ssl-client-session-id, akamai-x-get-true-cache-key, akamai-x-serial-no';
proxy.proxyRequest(req, res, {
host: req.headers['host'],
port: 80
})
}).listen(9001);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment