plvicente has asked for the wisdom of the Perl Monks concerning the following question:

Hello Perl Monks,

Should I use this way or this way?

use Mojolicious::Lite; app->config( hypnotoad => { listen => [ '' ], proxy => 1, }, ); # the rest of your application goes here

For mojolicious Apache2

Or this way =>

LoadModule proxy_module lib/httpd/ LoadModule proxy_http_module lib/httpd/ <Proxy *> Order allow,deny Allow from all </Proxy> <VirtualHost *:80> ServerName ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/ </VirtualHost> <VirtualHost *:80> ServerName ProxyPass / http://localhost:3001/ ProxyPassReverse / http://localhost:3001/ </VirtualHost>

Should I keep this as it is or should I look for other solution?
Instead this eg.

#!/usr/bin/perl -wT use strict; use CGI; my $query = CGI->new(); print $query->header( "text/html" ), $query->start_html(-title => "My First CGI Script", -bgcolor => "#ffffcc" ), $query->h1( "This is a pretty lame web page" ), $query->p( "Who is this Ovid guy, anyway?" ), $query->end_html
I am seeking for solutions to be done on an apache2 server. Take care Monks.

Best Regards Monks,