Search…

X3 Photo Gallery Support Forums

Search…
 
Eightkiller
Experienced
Topic Author
Posts: 116
Joined: 15 Jul 2012, 14:34

Images not found, no files in render folder - 404 errors

28 Jun 2021, 08:41

Hy, 

I'm trying to move my website to another host, so I created a demo imagevuex3 website first, but i get some trouble to configure it and I don't know why.
The website seems to load, but all images are not rendering, I get 404 errors for all images, for example: https://insightspirits.tempurl.host/ren ... semite.jpg 404 (logged in the chrome inspection tool, Network/img tab)

You can check it here: https://insightspirits.tempurl.host/

It's a temporary domain name, I wanted to make it work properly first and then migrate my domain name to the new host.
Could you help me to find what needs to be fixed ?

Thanks in advance.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Images not found, no files in render folder - 404 errors

28 Jun 2021, 10:53

Well, this is NGINX server (not Apache), and if you want to use NGINX, you need to make sure it's setup to work properly. First of all, the REWRITE isn't working ... When I go here https://insightspirits.tempurl.host/galleries/femme/ it's just pointing to the home page index.php without forwarding the PATH to the X3 app. 

Similar with resized images ... NGINX looks at the URL and decides that it does not exist and then returns "404 file not found". Instead, the request should be rewritten to point to the X3 app, which then servers the resized image.
https://insightspirits.tempurl.host/ren ... otball.jpg

Unless you are comfortable with NGINX configuration, you should not really be using NGINX in the first place, but Apache. Below is an example of NGINX config for X3:
https://gist.github.com/mjau-mjau/6dc19 ... e566a8457b

Some servers running nginx also do "varnish caching" which caches request before they reach X3 and causes problems, although I could not see that in your case. In either way, NGINX requires special consideration if you wish to use it with X3.