nope - can't get it working, when I enable I get no images loading. Disabling makes it ok.
I have attachments @ /srv/www/domain.com/public_html/attach
I have domain.com thus:
Code:
server {
listen 80;
client_max_body_size 2M;
server_name www.domain.com domain.com;
access_log /srv/www/domain.com/logs/access.log;
error_log /srv/www/domain.com/logs/error.log;
location / {
root /srv/www/domain.com/public_html;
index index.php index.html index.htm;
}
# globally disable external access to attachments, but enable for X-Accel-Redirect
location /attach {
internal;
}
# enable thumbnails direct access, but nothing else!
location ~* /attach/(.*)\.thumb$ {
expires 24h;
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /srv/www/domain.com/public_html$fastcgi_script_name;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_intercept_errors on;
}
}
in admincp I have path to attachements: /attach
cdn: blank
and
Enable large downloads acceleration: ticked yes
edit: I get a 404 for
http://www.domain.com/attach/9/226.thumb