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

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

Kindly seeking assistance in rendering images (any static file from /public) in a default Mojolicious-Hypnotoad-Nginx setup. Following the standard guides, this setup successfully renders the default welcome page. However adding one exception: a .png image to this page, it is not rendered, even the favicon.ico doesn't appear.

There is mention of "hooks" needed to correct for the workings of a Reverse Proxy, but after a long search one doesn't find a clear full example -- particularly for Nginx.

The welcome.html.ep has this simple addition: <img src="/tree.png" alt="tree">. It appears alone as an image when one enters this url: http://example.com/tree.png