Serving static content
Furnace framework ยป HTTP server

Prev:HTTP server port remapping
Next:Serving CGI scripts


The http.server.static vocabulary implements a responder for serving static files.
<static> ( root -- responder )


The static responder does not serve directory listings by default, as a security measure. Directory listings can be enabled by storing a true value in the allow-listings slot.

If all you want to do is serve files from a directory, the following phrase does the trick:
USING: namespaces http.server http.server.static ; "/var/www/mysite.com/" <static> main-responder set 8080 httpd

Hooks for dynamic content