diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-04-05 21:38:17 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-04-05 21:48:56 +0000 |
commit | 9f846a26d24d7bfaf17cacad16cfbae7eec39c74 (patch) | |
tree | c52bb107c5938eec3954c74e7743b9d2e635b39c /examples/nginx.conf | |
parent | 04bcc147d0081433069235a87f779055fa7b6f3c (diff) | |
download | unicorn-9f846a26d24d7bfaf17cacad16cfbae7eec39c74.tar.gz |
The PrivateTmp feature of systemd breaks the usage of /tmp for the shared Unix domain socket between nginx and unicorn, so discourage the use of /tmp in that case. While we're at it, use consistent paths for everything and use an obviously intended-for-user-customization "/path/to" prefix instead of "/tmp" ML-Ref: CAKLVLx_t+9zWMhquMWDfStrxS7xrNoGmN0ZDsjSCUE=VxU+oyQ@mail.gmail.com Reported-by: David Wilkins <dwilkins@conecuh.com>
Diffstat (limited to 'examples/nginx.conf')
-rw-r--r-- | examples/nginx.conf | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/nginx.conf b/examples/nginx.conf index 66ac0aa..a68fe6f 100644 --- a/examples/nginx.conf +++ b/examples/nginx.conf @@ -24,8 +24,8 @@ user nobody nogroup; # for systems with a "nogroup" # user nobody nobody; # for systems with "nobody" as a group instead # Feel free to change all paths to suite your needs here, of course -pid /tmp/nginx.pid; -error_log /tmp/nginx.error.log; +pid /path/to/nginx.pid; +error_log /path/to/nginx.error.log; events { worker_connections 1024; # increase if you have lots of clients @@ -42,7 +42,7 @@ http { default_type application/octet-stream; # click tracking! - access_log /tmp/nginx.access.log combined; + access_log /path/to/nginx.access.log combined; # you generally want to serve static files with nginx since neither # Unicorn nor Rainbows! is optimized for it at the moment @@ -74,7 +74,7 @@ http { # single worker for timing out). # for UNIX domain socket setups: - server unix:/tmp/.sock fail_timeout=0; + server unix:/path/to/.unicorn.sock fail_timeout=0; # for TCP setups, point these to your backend servers # server 192.168.0.7:8080 fail_timeout=0; |