[dancer-users] Dancer NGINX configutation

Richard Reina gatorreina at gmail.com
Tue Mar 8 14:44:49 GMT 2016


Gabor,

Thanks for the idea. I tried accessing an image from (public) images
directory and it came right up with the dancer app running. Then I stoped
the dancer app with "service starman stop" (as I used your tutorial
http://perlmaven.com/getting-started-with-perl-dancer-on-digital-ocean when
for my setup :) ) and when I refreshed the page with my dancer app stoped I
got:
502 Bad Gateway
------------------------------
nginx/1.6.2
Any idea how I can fix my nginx configuration to truly serve static files
directly (without dancer)?




2016-03-08 8:28 GMT-06:00 Gabor Szabo <gabor at szabgab.com>:

>
>
> On Tue, Mar 8, 2016 at 3:45 PM, Richard Reina <gatorreina at gmail.com>
> wrote:
>
>> I have the following nginx configuration that I believe -- or at least
>> hope -- serves up my static files, like images ad videos, directly without
>> invoking my dancer app. Can anyone tells me if this is the case or not, or
>> how I can test to see if they are indeed being served directly by NGINX?
>>
>
> Stop the Dancer application and try to load the static files directly.
>
> Gabor
>
>
>
>
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20160308/2f82e35e/attachment.html>


More information about the dancer-users mailing list