From 3f2d3a783c20c775a6b858757624b920db9ed898 Mon Sep 17 00:00:00 2001 From: yackob03 Date: Tue, 7 Jan 2014 17:15:29 -0500 Subject: [PATCH] Fix the nginx config. --- nginx-staging.conf | 2 ++ nginx.conf | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/nginx-staging.conf b/nginx-staging.conf index bbb98057b..c6927609e 100644 --- a/nginx-staging.conf +++ b/nginx-staging.conf @@ -35,11 +35,13 @@ http { } server { + listen 80 default_server; server_name _; rewrite ^ https://$host$request_uri? permanent; } server { + listen 443 default; client_max_body_size 8G; client_body_temp_path /mnt/nginx/client_body 1 2; server_name _; diff --git a/nginx.conf b/nginx.conf index 1a875ad85..53cd3c9f8 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,8 +1,8 @@ worker_processes 8; user nobody nogroup; -pid /tmp/nginx.pid; -error_log /tmp/nginx.error.log; +pid /mnt/nginx/nginx.pid; +error_log /mnt/nginx/nginx.error.log; events { worker_connections 1024; @@ -14,7 +14,7 @@ http { include /usr/local/nginx/conf/mime.types.default; default_type application/octet-stream; - access_log /tmp/nginx.access.log combined; + access_log /mnt/nginx/nginx.access.log combined; sendfile on; gzip on;