Recent Topics

Nginx and getfile.php

Started by on Jul 14, 2017 – Contents updated: Jul 18, 2017

Jul 14, 2017 18:13    

I'm running the 6.9.2 beta of b2 and the getfile.php doesn't work correctly on nginx. The images give a 404 error.

The images that get linked through give a not found: http://jcta.tk/htsrv/getfile.php/3128934444910.jpg?root=user_1&path=3128934444910.jpg&mtime=1499246357&size=crop-48x48
but in the back office this works: http://jcta.tk/media/users/josh/3128934444910.jpg?mtime=1499246357

Jul 14, 2017 18:39

I don't see anything of strange, in your first link you try to open a file via a script that you can't use directly, so the error is a way for tell you this is the bad way, instead the 2nd link is the right way to open a file via b2evo (the script work in background)

Jul 14, 2017 23:23

I think B2evo makes links like the first one when it links to the thumbnail images, avatars, and cover images.

Jul 16, 2017 17:35

I think you need to tell NginX that it is allowed to execute PHP files in /htsrv/.

Please post a copy of your nginx config.

This post has 1 feedback awaiting moderation...


Form is loading...

powered by b2evolution free blog software – This forum is powered by b2evolution CMS, a complete engine for your website.