Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

lighttpd + perl + mojolicious =?

Does mojolicious working under the lighttpd web-server? How to cofigure? Does I need setup the FastCGI? It's my first usage of lighttpd.

like image 953
VeroLom Avatar asked Dec 28 '10 13:12

VeroLom


1 Answers

You can use FastCGI but you can also use the included http server in Mojolicious (Hypnotoad) and use Lighttpd as a reverse proxy. So, for example, lighttpd listens on port 80 and proxies requests to one or more Mojoliciouss running at port 8080.

I find this set up easier, but it might be a little slower than using fastcgi... who knows.

edit:

links with more info:

  • Docs: http://mojolicio.us/perldoc
  • Mentions Appache/FastCGI: http://mojolicio.us/perldoc?Mojolicious/Guides/Cookbook
  • the two http servers included:
    • http://mojolicio.us/perldoc?Mojo/Server/Daemon
    • http://mojolicio.us/perldoc?Mojo/Server/Hypnotoad
like image 54
Øyvind Skaar Avatar answered Oct 21 '22 21:10

Øyvind Skaar