summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2012-04-05 10:28:04 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2012-04-05 10:28:04 +0000
commit8ef7344026c435ff7fe9cb2d991f4af465e69d8d (patch)
treea3b33e56a03f1807143831828f1e4cccab32b7cc /usr.sbin
parentbff1f2dca7be72c82459d905bdbfdaa51e626e2d (diff)
Mention the -u flag to tell nginx not to chroot.
Help with wording from jmc@, thanks!
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/nginx/man/nginx.823
1 files changed, 20 insertions, 3 deletions
diff --git a/usr.sbin/nginx/man/nginx.8 b/usr.sbin/nginx/man/nginx.8
index 2faedba4b88..9d7fc1e9254 100644
--- a/usr.sbin/nginx/man/nginx.8
+++ b/usr.sbin/nginx/man/nginx.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: nginx.8,v 1.4 2012/02/26 20:05:50 jmc Exp $
+.\" $OpenBSD: nginx.8,v 1.5 2012/04/05 10:28:03 sthen Exp $
.\"
.\" Copyright (c) 2010 Sergey A. Osokin
.\" Copyright (c) 2011,2012 Nginx, Inc.
@@ -26,7 +26,7 @@
.\" SUCH DAMAGE.
.\"
.\"
-.Dd $Mdocdate: February 26 2012 $
+.Dd $Mdocdate: April 5 2012 $
.Dt NGINX 8
.Os
.Sh NAME
@@ -34,7 +34,7 @@
.Nd HTTP and reverse proxy server, mail proxy server
.Sh SYNOPSIS
.Nm
-.Op Fl ?hqtVv
+.Op Fl ?hqtuVv
.Op Fl c Ar file
.Op Fl g Ar directives
.Op Fl p Ar prefix
@@ -88,6 +88,23 @@ Don't run, just test the configuration file.
.Nm
checks the configuration file syntax and then tries to open any files
referred to in the configuration file.
+.It Fl u
+By default
+.Nm
+will
+.Xr chroot 2
+to the home directory of the user running the daemon,
+typically
+.Dq www ,
+or to the home directory of
+.Ic user
+in
+.Pa nginx.conf .
+The
+.Fl u
+option disables this behaviour, and returns
+.Nm
+to the original "unsecure" behaviour.
.It Fl V
Print the
.Nm