Pedro Figueiredo
12 years ago
|
@@ -0,0 +1,37 @@
|
|
|
|
+user www;
|
|
|
|
+
|
|
|
|
+worker_processes 2;
|
|
|
|
+
|
|
|
|
+events {
|
|
|
|
+ worker_connections 1024;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+http {
|
|
|
|
+ output_buffers 1 32k;
|
|
|
|
+ postpone_output 1460;
|
|
|
|
+
|
|
|
|
+ sendfile on;
|
|
|
|
+ tcp_nopush on;
|
|
|
|
+
|
|
|
|
+ tcp_nodelay on;
|
|
|
|
+
|
|
|
|
+ upstream backendurl {
|
|
|
|
+ server unix:/tmp/frameworks-benchmark.sock;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ server {
|
|
|
|
+ listen 8888;
|
|
|
|
+ server_name localhost;
|
|
|
|
+
|
|
|
|
+ location / {
|
|
|
|
+ try_files $uri @proxy;
|
|
|
|
+ access_log off;
|
|
|
|
+ expires max;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ location @proxy {
|
|
|
|
+ proxy_set_header Host $http_host;
|
|
|
|
+ proxy_pass http://backendurl;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|