Good day, there is nginx 1.10, tomcat 8. Nginx looks at tomkat.In tomkate, in the folder there is a new image Image.png, I go by urla, I don’t see the picture, but everything is fine with old images. Conf Nginx:
upstream upstr { server xx.xx.xxx.xxx:8080;} proxy_cache_path /var/cache/nginx levels=2:2 keys_zone=one:4000m inactive=10m max_size=50m; server { listen 7000; root /home/folder/media; client_max_body_size 10m; proxy_max_temp_file_size 0; location /api/images/ { alias /home/folder/media/; expires 1m; } location /images/ { alias /home/folder/media/; expires 1m; } location /api/*/images/ { alias /home/folder/media/; expires 1m; } location /resources/ { root /home/folder/apache-tomcat-8.0.35/webapps/ROOT/; expires 1m; } location / { proxy_pass http://upstr; proxy_set_header Host coolhost; proxy_read_timeout 300s; proxy_pass_header x-msisdn; } }