summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2012-04-05 10:28:03 +0000
committersthen <sthen@openbsd.org>2012-04-05 10:28:03 +0000
commit92ba80a0e342e7f71da4fc692cc35eee499f117c (patch)
tree69a75b9040244e081161050dead1bef60a2ac855
parentAs it was made evident by Olaf 'Rhialto' Seibert in the NetBSD PR 34583, (diff)
downloadwireguard-openbsd-92ba80a0e342e7f71da4fc692cc35eee499f117c.tar.xz
wireguard-openbsd-92ba80a0e342e7f71da4fc692cc35eee499f117c.zip
Mention the -u flag to tell nginx not to chroot.
Help with wording from jmc@, thanks!
-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