good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Mojolicious-Hypnotoad-Nginx - rendering imagesby pdkakoba (Novice) |
on Apr 16, 2021 at 16:00 UTC ( [id://11131390]=note: print w/replies, xml ) | Need Help?? |
Yes, indeed, a 'static' file handler is needed but failing to implement one. The setup briefly is as follows: Debian10 on a Linode, running Perl 5.28 and Mojolicious 9.17 The simple_app was setup automatically with 'mojo' and in the simple_image.yml, one directive was added:
The tree.png appears in the Welcome page (with the favicon.ico), when runs directly under 'daemon' server. The hypnotoad server was set-up as a systemd service with the most recent Nginx configuration as:
The default simple_image app runs properly but without rendering the tree.png image nor the favicon. When this url is enter: http://example.com/tree.png - the image alone appears together with the favicon.
In Section
Seekers of Perl Wisdom
|
|