Skip to content

Instantly share code, notes, and snippets.

@roktas
Created September 12, 2010 05:27
Show Gist options
  • Save roktas/575874 to your computer and use it in GitHub Desktop.
Save roktas/575874 to your computer and use it in GitHub Desktop.
# yoğun yük altında yapılan ayarlar
client_max_body_size 32m;
client_body_buffer_size 8192k;
client_body_timeout 120;
client_header_timeout 120;
send_timeout 120;
keepalive_timeout 120;
# dersler dizinini dış erişimden korumak için alınan yetersiz önlem
location ~ /dersler/ {
valid_referers www.uzak.omu.edu.tr uzak.omu.edu.tr uzem.omu.edu.tr www.uzem.omu.edu.tr;
if ($invalid_referer) {
return 403;
}
}
# bu acaba tüm dosyalar için öntanımlı zaman aşımı değeri mi ayarlıyor?
location / {
expires 30d;
access_log off;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment