commit a7b9bb4d24e5f0d9ae6a1d67ac2224e0aef64d4e from: Omar Polo date: Sun Jan 24 09:20:38 2021 UTC specify in which directory CGI scripts are executed commit - 05748e49fed64039616d4bb06a7e09388b0f5467 commit + a7b9bb4d24e5f0d9ae6a1d67ac2224e0aef64d4e blob - 453c18817b1115d3378b081fbdae799e9a1a1c21 blob + 95cab4c3f147994137798c25da3b3ddf0fd79c3a --- gmid.1 +++ gmid.1 @@ -186,7 +186,9 @@ If not specified, it defaults to When CGI scripts are enabled for a directory, a request for an executable file will execute it and fed its output to the client. .Pp -The CGI scripts will inherit the environment from +The CGI scripts are executed in the root directory of the virtual +host, or in the served directory if run without config, and inherits +the environment from .Nm with these additional variables set: .Bl -tag -width 18m