Commits
- Commit:
0ab65593e21482c53ece36aa954204d7b202d351
- From:
- Omar Polo <op@omarpolo.com>
- Date:
don't crash on wrong vhost or missing SNI
the new logging code was crashing if the client didn't support SNI or
if required an unknown vhost: this because we short-circuit in
handle_handshake to an error, so c->iri isn't populated yet (we don't
even read the request).
fixes #1
- Commit:
0be51733ef271183e8164b8de1871cba634c1508
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improve logs
now we log the full IRI requested (before was only the path) and the
response line (even for CGI).
- Commit:
0fbe79b33c1d16b0611851e2019558ce8888a02e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improve mime handling
we still have an hardcoded list, but this implements the API needed to
modify the mappings.
- Commit:
132cae8c6f2c5866ff84058ac9461ca95d63ed8b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
removing err/warn functions with our fatal
err/warn is not available on some systems (unfortunately!) and in any
case don't play well with our daemon mode (that closes std{in,out,err}).
Use our fatal that is daemon-aware.
- Commit:
d3a08f4d172687d4e3e60e7faaa8830bb7f9f9db
- From:
- Omar Polo <op@omarpolo.com>
- Date:
reorganize: move bunch of functions to server.c
cgi.c wasn't really needed; it better to group all the server related
functions together, cgi or not. Now gmid.c contains only startup and
utility code.
- Commit:
0170ba023f9c85bde2c4ae410b0af741383b7317
- From:
- Omar Polo <op@omarpolo.com>
- Date:
re-enable daemon mode
with the split into two process, the call to daemon was lost
- Commit:
7146dd552fe47a38934be51b8cf075096e4ff518
- From:
- Omar Polo <op@omarpolo.com>
- Date:
missing break
- Commit:
d939d0f09e44d8bee3fd8f1519deddeb20b804ef
- From:
- Omar Polo <op@omarpolo.com>
- Date:
switch to getcwd
- Commit:
881a9dd9c2aebbf73f333dd3d8be4ce5400f717f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
split into two processes: listener and executor
this way, we can sandbox the listener with seccomp (todo) or capsicum
(already done) and still have CGI scripts. When we want to exec, we
tell the executor what to do, the executor executes the scripts and
send the fd backt to the listener.
- Commit:
7edc455ab4ba2c408558876339ac77a3104d0de2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move cgi stuff to its own file
- Commit:
5bc3c98ed4e25bc68a72dd6cd6676b25d2cdf9cd
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add protocols to the config
- Commit:
b777bf4b2be13429a31eaefdc89ceaf9fe252f24
- From:
- Omar Polo <op@omarpolo.com>
- Date:
check also that the port number matches
- Commit:
f7b816dc398efba2fb1cd4e2982ee3b23eed624f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
style
- Commit:
dafb57b8af432d800219a8e17900e1ac56a65c14
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sandbox also on FreeBSD with capsicum
- Commit:
15902770073dd67df3a9af0f6da7d63bfb031d72
- From:
- Omar Polo <op@omarpolo.com>
- Date:
conf & vhosts
* gmid.c (main): changed behaviour: daemon off by default
(main): changed -c in -C (cert option)
(main): changed -k in -K (key option, for consistency with -C)
(main): added -c to load a configuration
(main): certs, key and doc (-C -K and -d) doesn't have a default value anymore
(handle_handshake): add vhosts support