Page 1 of 1

Error after Moving to an other Server

Posted: 18 Nov 2018, 13:16
by pleibling
Hi, i got a problem after moving my Gallery to a new Server - this is hosted on Server 2012 R2 with IIS.

This Server has the same settings like the Server before, but wenn i open an Image in the protected Area, i get an Error to load the Image.

The Disgnostic Page looks good an show no error: https://galerie.leibling.de/public/?diagnostics

Re: Error after Moving to an other Server

Posted: 18 Nov 2018, 21:03
by mjau-mjau
I am getting error when loading some of your images, also directly in browser:
galerie.leibling.de/content/3.private/17.2017/02.Februar-2017/01.170219-Halbmarathon/IMG_0110.JPG
500 - Interner Serverfehler.
Problem bei der gesuchten Ressource. Sie kann nicht angezeigt werden.
Image

The issue is not related to "protected area", because the protect is application-only (PHP, X3 pages), and does not affect direct file access. Something server related.

Re: Error after Moving to an other Server

Posted: 19 Nov 2018, 01:21
by pleibling
Okay, i will take a look. But the Files are there. Maybe a Problem with UrlRewrite (cause Previews are generated - so they must find the files).

Thanks.

Re: Error after Moving to an other Server

Posted: 19 Nov 2018, 02:44
by mjau-mjau
pleibling wrote:Maybe a Problem with UrlRewrite (cause Previews are generated - so they must find the files).
Yes you are right. The files definitely exist. If you try to load an image that does NOT exist, you will probably see a different error anyway.

It does look like some kinda rewrite issue. This being a IIS server, there are rules in the X3 web.config file, although you may have rules set from elsewhere or global server rules also. You can try to disable the X3 web.config file and then load the image, but I don't think it is that ...

X3's web.config:
https://gist.github.com/mjau-mjau/87ad6 ... 131174b52a