One more question (I hope)

Valentin V. Bartenev vbart at nginx.com
Fri Jun 29 11:26:12 UTC 2018


On Friday 29 June 2018 12:07:35 Danny Horne via unit wrote:
> Hi,
> 
> I'm progressing well with Unit on Fedora 28, but I don't understand
> what's needed in my Perl application block with respect to "script"
> 
> I want to run AWStats through Unit.  Using Perl 5.26.2
> 
> Thanks for looking
> 

AWStats isn't really a web-application.  It's a collection of
Perl scripts supposed to be run from command line (usually it
run periodically by a cron daemon).  AWStats generates static
html files that can be served by a web server, like nginx.

The Unit Perl module is used to run web applications that
supports generic PSGI specification.  Bugzilla is a famous
example of such application.

The "script" option specifies a path to Perl script with PSGI
compatible interface.  This interface specifies how a Perl
application should receive a request and how it should return
a response.  AWStats doesn't need that.

See: https://plackperl.org/

  wbr, Valentin V. Bartenev



More information about the unit mailing list