Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
fbd5d77c
Commit
fbd5d77c
authored
Feb 07, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added note about CGI env vars
parent
6f8751b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Options.md
docs/Options.md
+8
-2
No files found.
docs/Options.md
View file @
fbd5d77c
...
@@ -43,8 +43,14 @@ Note that PHP scripts must use `php-cgi.exe` executable, not `php.exe`.
...
@@ -43,8 +43,14 @@ Note that PHP scripts must use `php-cgi.exe` executable, not `php.exe`.
All files that match
`cgi_pattern`
are treated as CGI files. Default pattern
All files that match
`cgi_pattern`
are treated as CGI files. Default pattern
allows CGI files be anywhere. To restrict CGIs to a certain directory,
allows CGI files be anywhere. To restrict CGIs to a certain directory,
use
`/path/to/cgi-bin/**.cgi`
as pattern. Note that full file path is
use
`/path/to/cgi-bin/**.cgi`
as pattern. Note that full file path is
matched against the pattern, not the URI. Note: if
`MONGOOSE_CGI`
environment
matched against the pattern, not the URI.
variable is set, then Mongoose passes it to the CGI script.
When Mongoose starts CGI program, it creates new environment for it (in
contrast, usually child program inherits the environment from parent). Several
environment variables however are inherited from Mongoose's environment,
they are:
`PATH`
,
`TMP`
,
`TEMP`
,
`TMPDIR`
,
`PERLLIB`
,
`MONGOOSE_CGI`
. On UNIX
it is also
`LD_LIBRARY_PATH`
. On Windows it is also
`COMSPEC`
,
`SYSTEMROOT`
,
`SystemDrive`
,
`ProgramFiles`
,
`ProgramFiles(x86)`
,
`CommonProgramFiles(x86)`
.
Default:
`**.cgi$|**.pl$|**.php$`
Default:
`**.cgi$|**.pl$|**.php$`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment