<div dir="ltr"><div>Hi Dave,<br><br></div>Thanks for the reply. I think I am already using it via starman.<br><br>use Daemon::Control;<br><br>use Cwd qw(abs_path);<br><br>Daemon::Control->new(<br>    {<br>    name      => "Starman",<br>    lsb_start => '$syslog $remote_fs',<br>    lsb_stop  => '$syslog',<br>    lsb_sdesc => 'Starman Short',<br>    lsb_desc  => 'Starman controls the web sites.',<br>    path      => abs_path($0),<br><br>    program      => '/usr/local/bin/starman',<br>    program_args => [ '--workers', '3', '/home/starman/mydomain/bin/app.psgi' ],<br>     <br>    user  => 'starman',<br>    group => 'starman',<br><br>    pid_file    => '/tmp/starman.pid',<br>    stderr_file => '/tmp/starman.err',<br>    stdout_file => '/tmp/starman.out',<br><br>    fork => 2,<br><br>    }<br>    )->run;<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-08 8:41 GMT-06:00 Dave Cross <span dir="ltr"><<a href="mailto:dave@dave.org.uk" target="_blank">dave@dave.org.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
Quoting Richard Reina <<a href="mailto:gatorreina@gmail.com" target="_blank">gatorreina@gmail.com</a>>:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have the following nginx configuration that I believe -- or at least hope<br>
-- serves up my static files, like images ad videos, directly without<br>
invoking my dancer app. Can anyone tells me if this is the case or not, or<br>
how I can test to see if they are indeed being served directly by NGINX?<br>
</blockquote>
<br></span>
Before you go too far down this route, have you considered using Plack::Middleware::Static instead?<br>
<br>
  <a href="https://metacpan.org/pod/Plack::Middleware::Static" rel="noreferrer" target="_blank">https://metacpan.org/pod/Plack::Middleware::Static</a><span class="HOEnZb"><font color="#888888"><br>
<br>
Dave...</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" rel="noreferrer" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
</div></div></blockquote></div><br></div>