Commits
- Commit:
8ad1c570242cd93f0802931621b49b2510b338e7
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fastcgi: a first implementation
Not production-ready yet, but it's a start.
This adds a third ``backend'' for gmid: until now there it served
local files or CGI scripts, now FastCGI applications too.
FastCGI is meant to be an improvement over CGI: instead of exec'ing a
script for every request, it allows to open a single connection to an
``application'' and send the requests/receive the responses over that
socket using a simple binary protocol.
At the moment gmid supports three different methods of opening a
fastcgi connection:
- local unix sockets, with: fastcgi "/path/to/sock"
- network sockets, with: fastcgi tcp "host" [port]
port defaults to 9000 and can be either a string or a number
- subprocess, with: fastcgi spawn "/path/to/program"
the fastcgi protocol is done over the executed program stdin
of these, the last is only for testing and may be removed in the
future.
P.S.: the fastcgi rule is per-location of course :)
- Commit:
50310aff335912edde625a5cde3729e34783fd7c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
added missing prototype
- Commit:
419e32b05e063a6997f1c1405602d5032e9d5792
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sync
- Commit:
c705ecb1ba3dd16e302f340a6bce96c0f28879e4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
factorize all "only once" checks
and while there add some more
- Commit:
7b2d743260095ea97babde51ab6155be2fb92dbb
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move pidfile & cgi to global vars
- Commit:
7aa925863334a2e568bdeaa6c387488b32f333ac
- From:
- Omar Polo <op@omarpolo.com>
- Date:
make more explicit the per-location roots test
- Commit:
737a6b50c599460a5e69c8a89e41f9881ff07f88
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ensure %p (path) is always absolute
with the recent changes, sometimes the path may not start with a '/'.
This ensures that %s is ALWAYS an absolute path.
- Commit:
fdea6aa0bca24f6f947e2126ce101fd59caa7a31
- From:
- Omar Polo <op@omarpolo.com>
- Date:
allow ``root'' rule to be specified per-location block
- Commit:
adbe6a6493c0e91fcfc918db8f4b5839a2867b1c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
always use ensure_absolute_path and improve its error message
- Commit:
17a04409b59bc60d46ecbddbe5728616ce43c20b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
typo in docker example
- Commit:
8070ffa70f45f7c78ea530c76d6edcc8aa81f14e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
typo (again)
- Commit:
7a4f7426573f27707297671892b32de3049c4507
- From:
- Omar Polo <op@omarpolo.com>
- Date:
typo
- Commit:
08ce6f527354b37ddbcf39b8680708239f1e8c12
- From:
- Omar Polo <op@omarpolo.com>
- Date:
tweaked the readme a bit
- Commit:
d06d6f4bba4851cb31464867d83b369d22bf3e2c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sort tokens
- Commit:
6a5e709beb14018d568c4343121a09d0b9a65945
- From:
- Omar Polo <op@omarpolo.com>
- Date:
typo: missing Ic