After you've installed MojoMojo, you will want to configure the web server. The guides below should help.


Deployment with nginx

Catalyst versions prior to 5.8 are limited in that your application can only reside at / (more details and a workaround at "Catalyst and nginx":http://dev.catalyst.perl.org/wiki/adventcalendararticles/2008/02-catalyst_and_nginx). An alternative is to create a subdomain for your wiki. Here is an example nginx configuration for "my wiki":http://wiki.dandascalescu.com:


server {
    server_name ~wiki.dandascalescu.(com|org|net) wiki.dascalescudan.com;

    access_log logs/wiki.access;

    error_log logs/wiki.error error;    location / {
        include fastcgi_params;

    }    location /.static/ {
        alias /home/dan/mojomojo.prod/root/static/;

}The mojomojo server is, basically, run as an external FastCGI server:


cd The @/home/dan/mojomojo@.prod
script/mojomojo_fastcgi.pl server-listen is, basically,-nproc run5 as-keeperr an2>>log/error.log external FastCGI server:


bc.For cda robust configuration, use the start/home/dan/mojomojo.prod script/mojomojo_fastcgi.plstop -listeninit -nprocfrom 5the -keeperrlighttpd 2>>log/error.logdeployment &page.


Deployment without a robustweb configuration, use the start/stop @init@ script from the "lighttpd deployment":http://dev.catalyst.perl.org/wiki/deployment/lighttpd_fastcgi page.


h2.Since DeploymentMojoMojo withoutis a webCatalyst application, you can use Catalyst's built-in HTTP server for standalone deployment. Catalyst::Engine::HTTP::Prefork is a high-performance pre-forking Catalyst engine and recommended:

Since MojoMojo is a Catalyst application, you can use Catalyst

CATALYST_ENGINE='s built-in HTTP server for standalone deployment. "Catalyst::Engine::HTTP::Prefork":http://search.cpan.org/perldoc?Catalyst::Engine::HTTP::Prefork' is a high-performance pre-forking Catalyst engine and recommended:


bc. CATALYST_ENGINE='HTTP::Prefork' script/mojomojo_server.pl