Nginx config sample
Code:
# Modified gzip settings: added CSS/JS,
# but completely disabled for broken browsers.
gzip_types text/plain text/css application/x-javascript text/xml text/javascript;
gzip_disable "MSIE [1-6].(?!.*SV1)";
# globally disable external access to attachments, but enable for X-Accel-Redirect
location /uploads {
internal;
}
# enable thumbnails direct access, but nothing else!
location ~* /uploads/(.*)\.thumb$ {
expires 24h;
}
# Expires for static files.
location /images/ {
expires 24h;
}
location /clientscript/ {
expires 24h;
}
location /custom { # All at once: profile pics, avatars, group images
expires 24h;
}
Apache config example
TBD
. Please, help to fill.