Replies: 3 comments 5 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Here is the generated code:
|
Beta Was this translation helpful? Give feedback.
-
So http://example.com/tree.png renders the image, but an img element with src /tree.png does not? What do logs report? nginx logs ({error,access}.log) and Mojolicious logs? What's with the javascript in the simple sample page? Is it possible something inside of the javascript is messing something up? Have you watched the transactions with your browser's developer tools? Some resources: |
Beta Was this translation helpful? Give feedback.
-
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: . It appears alone when one enters this url: http://example.com/tree.png
Beta Was this translation helpful? Give feedback.
All reactions