Code

History

Commits on master to README35+
  1. support returning gzip-compressed version of requested paths.Mechiel Lukkien committed 15 years ago671aaef
  2. add mkconfig, mention in README.Mechiel Lukkien committed 16 years ago9f2ec02
  3. rename from plain "httpd" to "shttpd", to prevent clash with inferno's httpd.Mechiel Lukkien committed 17 years ago5b02621
  4. many improvements:Mechiel Lukkien committed 18 years ago1514ffc
  5. make README conform to textmangle better, and mention new homepage.Mechiel Lukkien committed 18 years ago9214212
  6. change option -L (directory listings) to be more finegrained.Mechiel Lukkien committed 18 years agoc331a6e
  7. mention that connection rate limiting will not be implemented. that's something for a firewall to implement.Mechiel Lukkien committed 18 years agob785099
  8. - allow specifying which methods are allowed on a (s)cgi path. this allows simple shell scripts that don't do POST to not break when someone does a POST. the command-line options -c and -s, and the config allows setting this too. manual pages, and testing.txt have been updated for the new usage.Mechiel Lukkien committed 18 years agoee49faa
  9. various small fixes/improvements.Mechiel Lukkien committed 18 years agod1863a2
  10. a few todo's have been done. start ndb/dns in doc/testing.txt's httpd startup.Mechiel Lukkien committed 18 years ago40884ac
  11. doc/testing.txt contains commands to test the functionality. doc/ndb-testhttpd is the config to use for testing man page has bulleted list, instead of preformatted listing.Mechiel Lukkien committed 18 years agoc1f05be
  12. - shuffle some cgi handling code around. previously, some errors caused us to not respond on the cgi "donech", making the connection hang. - expect: 100-continue handling has been fixedMechiel Lukkien committed 18 years ago3740a23
  13. remove the list with things to test, they have been tested. print the query string of urls in the access log.Mechiel Lukkien committed 18 years ago0caeede
  14. improve config reloading. at startup, cfgserver is spawned once. updated configs are passed over a channel (instead of killing cfgserver and starting a new one). Cfgs now also keeps track of accessfd, usertypes, vhostflag, debugflag, addresses. this allows us to change to a config all or nothing, instead of leaving us inconsistent when we encountered an error halfway through config reloading.Mechiel Lukkien committed 18 years ago6cbd344
  15. more todo.Mechiel Lukkien committed 18 years agoe51ab7b
  16. only send "100 continue" when doing cgi handler if cgi script does not send it. this allows the cgi handler to deny incoming data without httpd sneaking in a "100 continue" (i.e. "send the data"). mention http rfc's in manual page. rearrange README: testing/todo now at bottom of file.Mechiel Lukkien committed 18 years agoee403c7
  17. for "listen" line in host configuration use the port from the host configuration by default, instead of 80.Mechiel Lukkien committed 18 years ago8f5e1d0
  18. do not use env->setenv for setting environment variables, it cannot set empty variables. instead, open /env/NAME and write to it ourselves. makes sure e.g. QUERY_STRING is always set for cgi programs.Mechiel Lukkien committed 18 years ago0b07dbb
  19. many small fixes. mention security in readme and man page. mention default announce address. add note about OPTIONS method to doc/http.txtMechiel Lukkien committed 18 years ago16afbaf
  20. man page: add accesslog-attr to example. mention nodebug and novhost always take precendece over the non-no-variants. mention $$ as meaning literal $ in redir. looked at redirs repl: slightly better error message config file parsing: - be clearer about what is wrong if a field is missing for auth - fix usertypes never being cleared on a reload, it is now, and reversed too - sanitize port values read from config - kill old cfgserver when init-ing a new one. useful at startup and -n was specified. http header token parsing: skip empty comma-separated whitespace error out on empty connection headerMechiel Lukkien committed 18 years ago0da13f6
  21. - open accesslogfile on reload of config file - log to errorlog when httpd has started or reloaded config - change some debug messages to warnings, and some warnings to debug - add some more debug prints, with if(debugflag) - print millisec() output in errorlog and debug, for tracing activityMechiel Lukkien committed 18 years agof7a29d8
  22. allow ip6 addresses in "host"-header, with []'s around ip6 address. small other fixes.Mechiel Lukkien committed 18 years ago60c47bd
  23. many changes, mostly small fixes and readability/style improvements, also code rearrangements. after reading code from paper.Mechiel Lukkien committed 18 years ago5e99793
  24. i read through the manual page and cleared it up a bit.Mechiel Lukkien committed 18 years ago6a956e8
  25. fewer todo's, fix man page a bit.Mechiel Lukkien committed 18 years agof041612
  26. rename "bind" (as config variant to -a addr) to "announce", and don't use an attribute "addr", it isn't needed.Mechiel Lukkien committed 18 years agof65da75
  27. welcome manual page. also add config attrs "debug", "nodebug" and "novhost". make usage line slightly better.Mechiel Lukkien committed 18 years ago9823343
  28. use a function to reverse the lists in a Cfg. reduces four copies of code by a single occurrence.Mechiel Lukkien committed 18 years agod20f668
  29. make redirection based on regular expressions, not fixed strings. also remove all the rev* functions, use refs to tuples instead of the tuples themselves.Mechiel Lukkien committed 18 years agod1f056b
  30. big changes:Mechiel Lukkien committed 18 years agoc70ee1d
  31. better info on host, port, path in access log file.Mechiel Lukkien committed 18 years agoe49fd0a
  32. - better names for some variables - allow listening on multiple addresses - order redir paths as well, so they do best-matching - do one pctl instead of two in httpserve() - fix a case where httptransact() would hang after a pctl error - better error messages for cgi handling - log content length for cgi handlers, or empty string for chunked - some commentsMechiel Lukkien committed 18 years agof9cc6be
  33. also kill cgi handling processes when post stops prematurely. order -s and -c cgipath arguments by size. longest first. to get most specific match first.Mechiel Lukkien committed 18 years ago024ba51
  34. be sure to read post's incoming data from buffered i/o, since some data may have been read ahead while reading the request. fixes post.Mechiel Lukkien committed 18 years ago56cadaa
  35. fix cgi variables QUERY_STRING, REQUEST_URI, SCRIPT_NAME. add SERVER_SOFTWARE. only set SCGI for scgi handler.Mechiel Lukkien committed 18 years agoff2e1d4