nginx-0.0.7-2004-06-24-11:53:37 import
diff --git a/auto/modules b/auto/modules
index a2dccc8..cd07cfc 100644
--- a/auto/modules
+++ b/auto/modules
@@ -66,6 +66,12 @@
 
 HTTP_MODULES="$HTTP_MODULES $HTTP_STATIC_MODULE $HTTP_INDEX_MODULE"
 
+if [ $HTTP_STATUS = YES ]; then
+    have=NGX_HTTP_STATUS . auto/have
+    HTTP_MODULES="$HTTP_MODULES $HTTP_STATUS_MODULE"
+    HTTP_SRCS="$HTTP_SRCS $HTTP_STATUS_SRCS"
+fi
+
 if [ $HTTP_REWRITE = YES -a $USE_PCRE != DISABLED ]; then
     have=NGX_HTTP_REWRITE . auto/have
     USE_PCRE=YES
diff --git a/auto/options b/auto/options
index 7c729d8..7a6e36d 100644
--- a/auto/options
+++ b/auto/options
@@ -30,9 +30,10 @@
 USE_THREADS=NO
 
 HTTP_CHARSET=YES
-HTTP_REWRITE=YES
 HTTP_GZIP=YES
 HTTP_SSI=YES
+HTTP_STATUS=YES
+HTTP_REWRITE=YES
 HTTP_PROXY=YES
 
 USE_PCRE=NO
@@ -82,9 +83,10 @@
         --with-threads)                  USE_THREADS="pthreads"     ;;
 
         --without-http_charset_module)   HTTP_CHARSET=NO            ;;
-        --without-http_rewrite_module)   HTTP_REWRITE=NO            ;;
         --without-http_ssi_module)       HTTP_SSI=NO                ;;
         --without-http_gzip_module)      HTTP_GZIP=NO               ;;
+        --without-http_status_module)    HTTP_STATUS=NO             ;;
+        --without-http_rewrite_module)   HTTP_REWRITE=NO            ;;
         --without-http_proxy_module)     HTTP_PROXY=NO              ;;
 
         --with-cc=*)                     CC="$value"                ;;
diff --git a/auto/sources b/auto/sources
index e402b1c..6801f27 100644
--- a/auto/sources
+++ b/auto/sources
@@ -240,10 +240,6 @@
 HTTP_CHARSET_SRCS=src/http/modules/ngx_http_charset_filter.c
 
 
-HTTP_REWRITE_MODULE=ngx_http_rewrite_module
-HTTP_REWRITE_SRCS=src/http/modules/ngx_http_rewrite_handler.c
-
-
 HTTP_GZIP_FILTER_MODULE=ngx_http_gzip_filter_module
 HTTP_GZIP_SRCS=src/http/modules/ngx_http_gzip_filter.c
 
@@ -252,6 +248,14 @@
 HTTP_SSI_SRCS=src/http/modules/ngx_http_ssi_filter.c
 
 
+HTTP_STATUS_MODULE=ngx_http_status_module
+HTTP_STATUS_SRCS=src/http/modules/ngx_http_status_handler.c
+
+
+HTTP_REWRITE_MODULE=ngx_http_rewrite_module
+HTTP_REWRITE_SRCS=src/http/modules/ngx_http_rewrite_handler.c
+
+
 HTTP_PROXY_MODULE=ngx_http_proxy_module
 HTTP_PROXY_INCS="src/http/modules/proxy"
 HTTP_PROXY_DEPS=src/http/modules/proxy/ngx_http_proxy_handler.h