summaryrefslogtreecommitdiffstats
path: root/usr.sbin/httpd/server.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* spacingreyk2014-08-031-3/+3
|
* Add another log mode "connection" for a relayd(8)-style log entry afterreyk2014-08-031-23/+39
| | | | | each connection, not every request. The code was already there and enabled on debug, I just turned it into an alternative log format.
* Allow to specify a FastCGI TCP socket on localhost (eg. :9000). Usedreyk2014-08-021-1/+22
| | | | | | | for debugging, you should prefer local UNIX sockets, but it helped to find an issue that will be fixed with the next commit. OK florian@
* Use the log buffer to defer the logging until the connection is closedreyk2014-08-011-12/+22
| | | | | | or the request completed. Turn the old log message into a debug message. ok doug@
* remove the global "log updates/all" option that came from relayd.reyk2014-08-011-2/+2
|
* Correctly parse fcgi records if we don't get the whole record in oneflorian2014-08-011-1/+3
| | | | | bufferevent_read(). Input/OK reyk@
* One bufferevent can be shared by file and fcgi.reyk2014-07-311-5/+5
|
* Make "location" work with name-based virtual servers.reyk2014-07-301-14/+1
|
* Add "location" keyword to specify path-specific configuration inreyk2014-07-301-1/+17
| | | | | servers, for example auto index for a sub-directory only. Internally, a "location" is just a special type of a "virtual" server.
* The inflight decremented message should only be printed with DEBUG.reyk2014-07-291-2/+2
|
* Move configurable TCP options into struct server_config.reyk2014-07-291-19/+19
|
* Differentiate servers by address and port, not just by address.reyk2014-07-251-3/+4
|
* It is recommended to use a URL in the Location header of 3xxreyk2014-07-251-6/+19
| | | | | | responses. To accomplish this, add some semantics to retrieve the server host name of a connection: either IP, IP:PORT (if not 80) or [IP6]:PORT, or Host value (if valid).
* Add support for "virtual hosts" aka. server blocks aka. multiplereyk2014-07-251-2/+27
| | | | | | servers with the same or "overlapping" IP address but a different name. ok beck@
* Split server and server_config.reyk2014-07-251-9/+11
|
* Rename a field, needed later, no functional change.reyk2014-07-251-5/+5
|
* Plug a memleak by correctly free'ing the HTTP descriptor that containsreyk2014-07-241-2/+5
| | | | all the headers etc. of a connection.
* Correctly shutdown the servers when the process is terminating;reyk2014-07-231-1/+23
| | | | prevents a crash on exit. With debugging help from blambert@.
* Implement file descriptor accounting. The concept was taken fromreyk2014-07-161-31/+23
| | | | | | relayd but had to be adjusted for httpd. It now handles single-pass HTTP connections, persistent connections with multiple requests, and body-less HEAD requests. With input from benno@
* first step towards keep-alive/persistent connections supportreyk2014-07-141-2/+12
|
* Finish writing the output before closing the connectionreyk2014-07-131-2/+10
| | | | (adopted from relayd).
* Close the connection after the response is completed (no Keepalive yet).reyk2014-07-131-2/+2
|
* Add support for media types (aka. MIME types): the types section isreyk2014-07-131-1/+4
| | | | | | compatible to nginx' mime.types file which can be included directly. If not present, use a few built-in defaults for html, css, txt, jpeg, gif, png, and js.
* Add httpd(8), an attempt to turn the relayd(8) codebase into a simplereyk2014-07-121-0/+643
web server. It is not finished yet and I just started it today, but the goal is to provide an HTTP server that a) provides minimal features, b) serves static files, c) provides FastCGI support, and d) follows common coding practices of OpenBSD. It will neither support plugins, nor custom memory allocators, EBCDIC support, PCRE or any other things that can be found elsewhere. httpd(8) is not intended to provide a fully-featured replacement for nginx(8) or the Apache, but it will provide enough functionality that is needed in the OpenBSD base system. ok deraadt@