Browse Source

added note about the http service

master
Ralph Rönnquist 3 years ago
parent
commit
a5a86f99ca
  1. 9
      hobby-http.lsp

9
hobby-http.lsp

@ -2,8 +2,15 @@
#
# Simple HTTP service for a directory tree. Start with:
#
# newlisp hobby-http.lsp -c -d $PORT -w $TREE
# newlisp hobby-http.lsp -c -http -d $PORT -w $TREE
#
# Note that it does not make automatic file indexes of directories,
# and it only shows the files that are there. Some files are handled
# by their file extension, such as: .avi, .cgi, .css, .gif, .htm,
# .html, .jpg, .js, .mov, .mp3,.mpg, .pdf, .png, .wav, .zip. Those
# files are served with appropriate mime types, except .cgi which if
# executable will be executed as a near CGI 1.1 script. Other files
# are served with type "text/plain".
; Exit on ^C -- not cleanly
(signal 2 (fn (x) (write-line 2 "Exiting") (close 3) (exit 0)))

Loading…
Cancel
Save