Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mongoose
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ganil-acq
GANILinux
linux-service
library
mongoose
Commits
13d0b67c
Commit
13d0b67c
authored
12 years ago
by
Sergey Lyubka
Browse files
Options
Downloads
Patches
Plain Diff
More updates to User Manual
parent
bda8e907
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
UserManual.md
+9
-7
9 additions, 7 deletions
UserManual.md
with
9 additions
and
7 deletions
UserManual.md
+
9
−
7
View file @
13d0b67c
...
@@ -57,14 +57,8 @@ Mongoose can also be used to modify `.htpasswd` passwords file:
...
@@ -57,14 +57,8 @@ Mongoose can also be used to modify `.htpasswd` passwords file:
-
How to serve user home directories using URL rewrite:
-
How to serve user home directories using URL rewrite:
`mongoose -url_rewrite_patterns /~joe/=/home/joe/,/~bill=/home/bill/`
`mongoose -url_rewrite_patterns /~joe/=/home/joe/,/~bill=/home/bill/`
## Co
mmand Line
Options
## Co
nfiguration
Options
```
```
-A htpasswd_file domain_name user_name password
Add/edit user's password in the passwords file. Deleting users
can be done with any text editor. Functionality is similar to
Apache's htdigest utility.
-C cgi_pattern
-C cgi_pattern
All files that fully match cgi_pattern are treated as CGI.
All files that fully match cgi_pattern are treated as CGI.
Default pattern allows CGI files be anywhere. To restrict CGIs to
Default pattern allows CGI files be anywhere. To restrict CGIs to
...
@@ -203,6 +197,14 @@ can pass configuration options to `mg_start()`, and also specify callback
...
@@ -203,6 +197,14 @@ can pass configuration options to `mg_start()`, and also specify callback
functions that Mongoose should call at certain events.
functions that Mongoose should call at certain events.
[
hello.c
](
http://a.c
)
provides a minimalistic example.
[
hello.c
](
http://a.c
)
provides a minimalistic example.
Common pattern is to implement
`begin_request`
callback, and serve static files
from memory, and/or construct dynamic replies on the fly. Here is
my
[
embed.c
](
https://gist.github.com/valenok/4714740
)
gist
that shows how to easily any data can be embedded
directly into the executable. If such data needs to be encrypted, then
encrypted database or encryption dongles would be a better choice.
## Other Resources
## Other Resources
-
Presentation made by Arnout Vandecappelle at FOSDEM 2011 on 2011-02-06
-
Presentation made by Arnout Vandecappelle at FOSDEM 2011 on 2011-02-06
in Brussels, Belgium, called
in Brussels, Belgium, called
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment