From: CGS <cgs...@gm...> - 2012-04-17 08:22:41
|
Oh, forgot to put yaws mail list in cc (sorry for duplicate). So, here is my answer I sent privately, for all the users to see it and to be corrected if I am wrong. Hi, I am not an expert, but I've been playing with different web servers mounted on the same machine and my conclusion (and answer to your question) is that it doesn't matter what or how many web servers you have on the same machine, the trick is to put them to listen on different ports and to set in the main web server a reverse proxy for each of the other web servers. In your case, for example, set RoR on port 80 and Yaws on port 8010 with reverse proxy in RoR from http://xxx.xxx.xxx.xxx:8010 to /yaws. In such way, whatever request comes for http://xxx.xxx.xxx.xxx/yaws/page_request.html will be redirected and handled by Yaws web server. There may be some other options, but I know this works as I used it pretty often. The draw back of such method is serving dynamic pages (do not compose pages from the root URL and the page because you have /yaws/ in between). Otherwise, you can use POST and GET methods without any problem to communicate with Yaws pages (and, further, with its modules). Hope this will help. CGS On Tue, Apr 17, 2012 at 9:59 AM, xxx xxx <now...@li...> wrote: > Is there any way to run yaws itself as a fastcgi responder? > > I know from the documentation that yaws can call other fastcgi apps > (responders?). I'm asking whether yaws itself can be a fastcgi responder, > which means it would take fastcgi requests from another server. > > Or, since I'm no web server expert, perhaps I should just throw the > problem out there that I'm trying to solve. I want to use something like > django or rails as a front-end. I already have back-end stuff written in > erlang and yaws which I'd like to use. It seems to me (correct me if I'm > wrong) that the proper configuration in this case is running a django or > rails in the front, and yaws on the back which can call my erlang apps. I > know that django for instance can access other servers using fastcgi. It > then seems like a natural question to ask "can yaws be run as a fastcgi > responder itself?" > > Thanks. > > > ------------------------------------------------------------------------------ > Better than sec? Nothing is better than sec when it comes to > monitoring Big Data applications. Try Boundary one-second > resolution app monitoring today. Free. > http://p.sf.net/sfu/Boundary-dev2dev > _______________________________________________ > Erlyaws-list mailing list > Erl...@li... > https://lists.sourceforge.net/lists/listinfo/erlyaws-list > > |