File/CGI web server on Warp
View the Project on GitHub kazu-yamamoto/mighttpd2
Mighttpd2 is registered in Hackage. So, you can install Mighttpd2 with the cabal command.
You should download the updated index of Hackage.
% cabal update
Note that cabal uses the http_proxy environment variable.
The following command installs mighttpd2 with HTTP, CGI, Reverse Proxy and URL rewriting enabled.
% cabal install mighttpd2
Note that the -jN option enables parallel installation to save time.
Here is a lift of installation flags:
tls: TLS supportquic: QUIC supportdhall: Dhall configration supportTo use them, type:
% cabal install --flags="tls" --flags="quic" --flags="dhall" mighttpd2
Now you can find the followings:
~/.cabal/bin/mighty: Mighttpd2, an HTTP server in Haskell~/.cabal/bin/mightyctl: the command to operate Mighttpd2~/.cabal/bin/mighty-mkindex: the command to make index.html for files in a directory~/.cabal/share/mighttpd-x.y.z/example.conf: an example configuration file for Mighttpd2~/.cabal/share/mighttpd-x.y.z/example.route: an example route file from URIs to directoriesIf you use Mac, please check ~/Library/Haskell.