HTTPy was originally hosted on Launchpad.
HTTPy is a lightweight web server, written in python. It is rather basic, and is not capable of parsing any server-side scripts. It simply serves any page that the client asks for, or returns a 404 error. It is also able to serve non-HTLM items, such as images, programs, and videos.
HTTPy is able to run in two modes: terminal, and daemon. In terminal mode, HTTPy will still log all messages to a text log. You have to disable text logs in the config file to stop this.
HTTPy communicates using HTTP headers, but it currently is only able to send
one of three HTTP2 responses to a request: 200 OK, 404 Not Found, or
403 Forbidden.
Some effort was put into preventing directory transversal, but as always, it may still be vulnerable in many ways. You are encouraged to look for vulnerabilities and bugs. If you find any, don't hesitate to report them on HTTPy's bug tracker.
For HTTPy to run, the files const.py, daemon.py
and __init__.py must be in the bin/ directory,
which must be in the same directory as httpy.py
-
Edit the
httpy.pyfile and change the variableCONFIG_FILEnear the top of the file to the path of HTTPy's configuration file on your system. -
Edit the
httpy.confconfig file to fit your system. Make sure that theSERVER_PORT,LISTEN_IP_ADDRESS,DOCUMENT_ROOT, andLOG_LOCATIONvariables are set correctly. -
Start HTTPy by calling the file
httpy.pywithstartas the argument (e.g./path/to/httpy.py start). Use--no-daemoninstead ofstartif you would like to see console messages.