nginx + keycdn + odoo

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

nginx + keycdn + odoo

Alessio Medici

Good morning,

we have a dockerized odoo10 behind a dockerized nginx (jwilder/nginx-proxy).

We have tried to use CDN, but all requests from KeyCDN get a 404 error.

These are the logs from nginx.

We asked for an image: with a direct call (https://54ds-test.clickode.it/web/image/10811/umberto-oreglini-54-dean-street.JPG) we get:

nginx.1 | 54ds-test.clickode.it 94.32.238.160 - - [25/Mar/2020:15:57:34 +0000] "GET /web/image/10811/umberto-oreglini-54-dean-street.JPG HTTP/2.0" 200 54767 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/80.0.3987.87 Chrome/80.0.3987.87 Safari/537.36"

 

If we ask the same image through KeyCDN (https://fly54deanstreet-13b2f.kxcdn.com/web/image/10811/umberto-oreglini-54-dean-street.JPG) we get:

nginx.1 | 54ds-test.clickode.it 185.172.149.101 - - [25/Mar/2020:11:51:49 +0000] "GET /web/image/10811/umberto-oreglini-54-dean-street.JPG HTTP/1.1" 404 233 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/80.0.3987.87 Chrome/80.0.3987.87 Safari/537.36"

 

Using cUrl and HTTP/1.1 we got:

nginx.1 | 54ds-test.clickode.it 94.32.238.160 - - [25/Mar/2020:12:00:14 +0000] "GET /web/image/10811/umberto-oreglini-54-dean-street.JPG HTTP/1.1" 200 54767 "-" "curl/7.58.0"

 

We cannot understand why the request is not fulfilled if it comes from KeyCDN.

Had someone got the same problem?

 

Thanks in advance.

Alessio


_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx