http://www.perlmonks.org?node_id=11132161

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 => [ 'http://127.0.0.1:8082/' ], proxy => 1, }, ); # the rest of your application goes here

For mojolicious Apache2

Or this way =>

LoadModule proxy_module lib/httpd/mod_proxy.so LoadModule proxy_http_module lib/httpd/mod_proxy_http.so <Proxy *> Order allow,deny Allow from all </Proxy> <VirtualHost *:80> ServerName app1.somehost.com ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/ </VirtualHost> <VirtualHost *:80> ServerName app2.somehost.com 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,
plvicente