dépôts
/
lhc
/
ateliers.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correction : Burette de la Cyclo de Paris Est.
[lhc/ateliers.git]
/
etc
/
nginx
/
nginx.conf
diff --git
a/etc/nginx/nginx.conf
b/etc/nginx/nginx.conf
index
216e273
..
1ebd203
100644
(file)
--- a/
etc/nginx/nginx.conf
+++ b/
etc/nginx/nginx.conf
@@
-72,6
+72,7
@@
http {
sendfile on;
server_names_hash_bucket_size 128;
server_tokens off;
sendfile on;
server_names_hash_bucket_size 128;
server_tokens off;
+ ssl_session_cache shared:SSL:10m;
tcp_nodelay on;
# NOTE: don't buffer data-sends (disable Nagle algorithm).
# Good for sending frequent small bursts of data in real time.
tcp_nodelay on;
# NOTE: don't buffer data-sends (disable Nagle algorithm).
# Good for sending frequent small bursts of data in real time.
@@
-81,14
+82,14
@@
http {
# This is useful for prepending headers before calling sendfile,
# or for throughput optimization.
types_hash_max_size 2048;
# This is useful for prepending headers before calling sendfile,
# or for throughput optimization.
types_hash_max_size 2048;
- ## Add here all user agents that are to be blocked.
map $http_user_agent $bad_bot {
map $http_user_agent $bad_bot {
+ # NOTE: user agents that are to be blocked.
default 0;
libwww-perl 1;
~(?i)(httrack|htmlparser|libwww) 1;
}
default 0;
libwww-perl 1;
~(?i)(httrack|htmlparser|libwww) 1;
}
- ## Add here all referrers that are to blocked.
#map $http_referer $bad_referer {
#map $http_referer $bad_referer {
+ # # NOTE: referrers that are to be blocked.
# default 0;
# ~(?i)(babes|casino|click|diamond|forsale|girl|jewelry|love|nudit|organic|poker|porn|poweroversoftware|replica|sex|teen|webcam|zippo) 1;
# }
# default 0;
# ~(?i)(babes|casino|click|diamond|forsale|girl|jewelry|love|nudit|organic|poker|porn|poweroversoftware|replica|sex|teen|webcam|zippo) 1;
# }