简体   繁体   中英

Reverse Proxy/Forward HTTP Requests in Erlang

I have searched the web and found inets and mod_esi, however I need to build a module that takes a HTTP request to http://localhost:8000 and then reverse proxies it to http://localhost:9000 without doing a HTTP forward, as I need the proxied server to be anonymous to the requester at all times.

Something similar implemented in Node.JS can be found: https://github.com/nodejitsu/node-http-proxy .

Can anybody point me in the right direction?

The Yaws web server supports both forward and reverse proxies. Maybe you can have a look at the Yaws source code for inspiration.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM