--- auto/options.orig	2011-03-01 12:57:50.000000000 +0200
+++ auto/options	2011-03-01 13:41:59.000000000 +0200
@@ -13,6 +13,7 @@
 NGX_LOCK_PATH=
 NGX_USER=
 NGX_GROUP=
+NGX_RLIMIT_NOFILE=4096
 
 CC=${CC:-gcc}
 CPP=
@@ -169,6 +170,8 @@
 
         --builddir=*)                    NGX_OBJS="$value"          ;;
 
+        --rlimit-nofile=*)               NGX_RLIMIT_NOFILE="$value" ;;
+
         --with-rtsig_module)             EVENT_RTSIG=YES            ;;
         --with-select_module)            EVENT_SELECT=YES           ;;
         --without-select_module)         EVENT_SELECT=NONE          ;;
@@ -318,6 +321,9 @@
 
   --builddir=DIR                     set the build directory
 
+  --rlimit-nofile=COUNT              maximum number of open file descriptors
+                                     allowed by default for the nginx process
+
   --with-rtsig_module                enable rtsig module
   --with-select_module               enable select module
   --without-select_module            disable select module