[sheepdog] [PATCH v4 2/4] tests/func: add nginx.conf

Liu Yuan namei.unix at gmail.com
Fri Dec 20 05:50:11 CET 2013


This is needed for later test cases to test http services. It is convenient to
include it in the tests and make tests self-contained.

Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
 tests/functional/nginx.conf | 97 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 97 insertions(+)
 create mode 100644 tests/functional/nginx.conf

diff --git a/tests/functional/nginx.conf b/tests/functional/nginx.conf
new file mode 100644
index 0000000..46b4a73
--- /dev/null
+++ b/tests/functional/nginx.conf
@@ -0,0 +1,97 @@
+events {
+	worker_connections 1024;
+}
+
+http {
+	server {
+		listen 80;
+		server_name localhost;
+
+		location / {
+			fastcgi_pass   localhost:8000;
+
+			fastcgi_param   SCRIPT_NAME             $fastcgi_script_name;
+			fastcgi_param   REQUEST_METHOD          $request_method;
+			fastcgi_param	CONTENT_LENGTH		$content_length;
+			fastcgi_param	HTTP_RANGE		$http_range;
+			fastcgi_param	DOCUMENT_URI		$document_uri;
+			fastcgi_param	REQUEST_URI		$request_uri;
+		}
+	}
+	server {
+		listen 81;
+		server_name localhost;
+
+		location / {
+			fastcgi_pass   localhost:8001;
+
+			fastcgi_param   SCRIPT_NAME             $fastcgi_script_name;
+			fastcgi_param   REQUEST_METHOD          $request_method;
+			fastcgi_param	CONTENT_LENGTH		$content_length;
+			fastcgi_param	HTTP_RANGE		$http_range;
+			fastcgi_param	DOCUMENT_URI		$document_uri;
+			fastcgi_param	REQUEST_URI		$request_uri;
+		}
+	}
+	server {
+		listen 82;
+		server_name localhost;
+
+		location / {
+			fastcgi_pass   localhost:8002;
+
+			fastcgi_param   SCRIPT_NAME             $fastcgi_script_name;
+			fastcgi_param   REQUEST_METHOD          $request_method;
+			fastcgi_param	CONTENT_LENGTH		$content_length;
+			fastcgi_param	HTTP_RANGE		$http_range;
+			fastcgi_param	DOCUMENT_URI		$document_uri;
+			fastcgi_param	REQUEST_URI		$request_uri;
+		}
+	}
+	server {
+		listen 83;
+		server_name localhost;
+
+		location / {
+			fastcgi_pass   localhost:8003;
+
+			fastcgi_param   SCRIPT_NAME             $fastcgi_script_name;
+			fastcgi_param   REQUEST_METHOD          $request_method;
+			fastcgi_param	CONTENT_LENGTH		$content_length;
+			fastcgi_param	HTTP_RANGE		$http_range;
+			fastcgi_param	DOCUMENT_URI		$document_uri;
+			fastcgi_param	REQUEST_URI		$request_uri;
+		}
+	}
+	server {
+		listen 84;
+		server_name localhost;
+
+		location / {
+			fastcgi_pass   localhost:8004;
+
+			fastcgi_param   SCRIPT_NAME             $fastcgi_script_name;
+			fastcgi_param   REQUEST_METHOD          $request_method;
+			fastcgi_param	CONTENT_LENGTH		$content_length;
+			fastcgi_param	HTTP_RANGE		$http_range;
+			fastcgi_param	DOCUMENT_URI		$document_uri;
+			fastcgi_param	REQUEST_URI		$request_uri;
+		}
+	}
+	server {
+		listen 85;
+		server_name localhost;
+
+		location / {
+			fastcgi_pass   localhost:8005;
+
+			fastcgi_param   SCRIPT_NAME             $fastcgi_script_name;
+			fastcgi_param   REQUEST_METHOD          $request_method;
+			fastcgi_param	CONTENT_LENGTH		$content_length;
+			fastcgi_param	HTTP_RANGE		$http_range;
+			fastcgi_param	DOCUMENT_URI		$document_uri;
+			fastcgi_param	REQUEST_URI		$request_uri;
+		}
+	}
+	client_max_body_size 0;
+}
-- 
1.8.1.2




More information about the sheepdog mailing list