summaryrefslogtreecommitdiff
path: root/vhosttest
diff options
context:
space:
mode:
authorroberto@debian32 <roberto@debian32>2011-06-05 08:20:23 +0200
committerroberto@debian32 <roberto@debian32>2011-06-05 08:20:23 +0200
commitb7525475d8fe4950bf06b898874a40a34732e003 (patch)
tree6a1d38bd0ec81e4fac86f5f085cf0d1230281191 /vhosttest
parentf35a36ac02eb115a2f257546d9932b4b3a83a8e7 (diff)
downloaduwsgi-b7525475d8fe4950bf06b898874a40a34732e003.tar.gz
ready for 0.9.8 release0.9.8
Diffstat (limited to 'vhosttest')
-rw-r--r--vhosttest/flask001/app1.py6
-rw-r--r--vhosttest/flask002/app2.py6
-rw-r--r--vhosttest/flask003/app3.py6
-rw-r--r--vhosttest/flask004/app4.py6
-rw-r--r--vhosttest/flask005/app5.py6
-rw-r--r--vhosttest/nginx.conf49
6 files changed, 79 insertions, 0 deletions
diff --git a/vhosttest/flask001/app1.py b/vhosttest/flask001/app1.py
new file mode 100644
index 00000000..bbf7e467
--- /dev/null
+++ b/vhosttest/flask001/app1.py
@@ -0,0 +1,6 @@
+from flask import Flask
+app = Flask(__name__)
+
+@app.route("/")
+def hello():
+ return "Hello World!"
diff --git a/vhosttest/flask002/app2.py b/vhosttest/flask002/app2.py
new file mode 100644
index 00000000..346eca47
--- /dev/null
+++ b/vhosttest/flask002/app2.py
@@ -0,0 +1,6 @@
+from flask import Flask
+app = Flask(__name__)
+
+@app.route("/")
+def hello():
+ return "Hello World! app2 !!!"
diff --git a/vhosttest/flask003/app3.py b/vhosttest/flask003/app3.py
new file mode 100644
index 00000000..9e33a753
--- /dev/null
+++ b/vhosttest/flask003/app3.py
@@ -0,0 +1,6 @@
+from flask import Flask
+app = Flask(__name__)
+
+@app.route("/")
+def hello():
+ return "Hello World! app3"
diff --git a/vhosttest/flask004/app4.py b/vhosttest/flask004/app4.py
new file mode 100644
index 00000000..313aa7a3
--- /dev/null
+++ b/vhosttest/flask004/app4.py
@@ -0,0 +1,6 @@
+from flask import Flask
+app = Flask(__name__)
+
+@app.route("/")
+def hello():
+ return "Hello World! app4"
diff --git a/vhosttest/flask005/app5.py b/vhosttest/flask005/app5.py
new file mode 100644
index 00000000..54f51c34
--- /dev/null
+++ b/vhosttest/flask005/app5.py
@@ -0,0 +1,6 @@
+from flask import Flask
+app = Flask(__name__)
+
+@app.route("/")
+def hello():
+ return "Hello World! app5"
diff --git a/vhosttest/nginx.conf b/vhosttest/nginx.conf
new file mode 100644
index 00000000..cf630083
--- /dev/null
+++ b/vhosttest/nginx.conf
@@ -0,0 +1,49 @@
+
+worker_processes 1;
+
+events {
+ worker_connections 1024;
+}
+
+
+http {
+ include mime.types;
+ default_type application/octet-stream;
+
+ sendfile on;
+
+ keepalive_timeout 65;
+
+ gzip on;
+
+ upstream uwsgi_server {
+ server 127.0.0.1:3031;
+ }
+
+ include uwsgi_params;
+ uwsgi_param UWSGI_FILE $app;
+ uwsgi_param UWSGI_PYHOME $virtualenv;
+
+
+ server {
+ listen 8026;
+ server_name flask001;
+ set $app vhosttest/flask001/app1.py;
+ set $virtualenv vhosttest/venv001;
+ location / {
+ uwsgi_pass uwsgi_server;
+ }
+ }
+
+ server {
+ listen 8026;
+ server_name flask002;
+ set $app vhosttest/flask002/app2.py;
+ set $virtualenv vhosttest/venv001;
+ location / {
+ uwsgi_pass uwsgi_server;
+ }
+ }
+
+
+}