aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/httpd/nginx
diff options
context:
space:
mode:
Diffstat (limited to 'src/benchmarks/httpd/nginx')
-rw-r--r--src/benchmarks/httpd/nginx/nginx.conf72
1 files changed, 72 insertions, 0 deletions
diff --git a/src/benchmarks/httpd/nginx/nginx.conf b/src/benchmarks/httpd/nginx/nginx.conf
new file mode 100644
index 0000000..988639e
--- /dev/null
+++ b/src/benchmarks/httpd/nginx/nginx.conf
@@ -0,0 +1,72 @@
+#user html;
+worker_processes 1;
+
+
+error_log OBJDIR/nginx/logs/error.log;
+error_log OBJDIR/nginx/logs/error.log notice;
+error_log OBJDIR/nginx/logs/error.log info;
+
+pid OBJDIR/nginx/logs/nginx.pid;
+
+
+events {
+ worker_connections 1024;
+}
+
+
+http {
+ log_format main '$remote_addr - $remote_user [$time_local] "$request" '
+ '$status $body_bytes_sent "$http_referer" '
+ '"$http_user_agent" "$http_x_forwarded_for"';
+
+ access_log OBJDIR/nginx/logs/access.log main;
+
+ sendfile on;
+ #tcp_nopush on;
+
+ #keepalive_timeout 0;
+ keepalive_timeout 65;
+
+ #gzip on;
+
+ server {
+ listen 8080;
+ server_name localhost;
+
+ location / {
+ root OBJDIR/html;
+ index index.html index.htm;
+ }
+
+ #error_page 404 /404.html;
+
+ # redirect server error pages to the static page /50x.html
+ #
+ error_page 500 502 503 504 /50x.html;
+ location = /50x.html {
+ root /usr/share/nginx/html;
+ }
+ }
+
+ # HTTPS server
+ #
+ #server {
+ # listen 443 ssl;
+ # server_name localhost;
+
+ # ssl_certificate cert.pem;
+ # ssl_certificate_key cert.key;
+
+ # ssl_session_cache shared:SSL:1m;
+ # ssl_session_timeout 5m;
+
+ # ssl_ciphers HIGH:!aNULL:!MD5;
+ # ssl_prefer_server_ciphers on;
+
+ # location / {
+ # root html;
+ # index index.html index.htm;
+ # }
+ #}
+
+}