Erlang/OTP Forums

Author Message

<  Erlang  ~  Forwarding a http request

sbelur
Posted: Fri Oct 03, 2008 7:03 am Reply with quote
Joined: 03 Oct 2008 Posts: 2
Hello

I would like to know if there is a way in Erlang
to forward an incoming httprequest.

i.e Assuming i have a map of erlang functions for some
requests and for some other requests i need to just forward to any other server (like apache) to handle http
request.

Is there a way in erlang itself or i shud deploy in yaws

Right now i am just using gen_tcp stuff to do my server coding

Thanks
sbelur
View user's profile Send private message
hao
Posted: Fri Oct 03, 2008 7:50 am Reply with quote
User Joined: 20 Aug 2007 Posts: 18 Location: Uppsala, Sweden
Yaws has a feature called "revproxy" which can be set in the yaws.conf file. Its description is under this link:

http://yaws.hyber.org/yman.yaws?page=yaws.conf

Hope it is helpful in some way.
View user's profile Send private message Send e-mail MSN Messenger
sbelur
Posted: Mon Oct 06, 2008 9:12 am Reply with quote
Joined: 03 Oct 2008 Posts: 2
I am still trying to really get how to use or find a solution to this.

Actually am a newbie and trying to do an on the job learning sort of so to speak - as far as erlang is concerned.

Any sample code for relaying the same erlang request
to Apache process would be great.

Thanks in advance
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum