LittleHTTPServer is intended to extend SimpleHTTPServer a little bit more.
Setup
easy_install LittleHTTPServer
Quick Start
littlehttpserver -v -d path/to/dir1 -d path/to/dir2
You can access dir1 and dir2 via "http://localhost:8000/".
littlehttpserver -h
usage: littlehttpserver [-h] [-p PORT_NUMBER] [-d DOCUMENT_DIR] [-v]
[--protocol PROTOCOL] [--servertype {process,thread}]
[--version]
optional arguments:
-h, --help show this help message and exit
-p PORT_NUMBER, --port PORT_NUMBER
set server port number
-d DOCUMENT_DIR, --dir DOCUMENT_DIR
set some document directories
-v, --verbose set verbose mode
--protocol PROTOCOL set protocol
--servertype {process,thread}
set server type
--version show program version
Features:
- Provide some directories not only current directory
- Provide selectable SocketServer type, Threading or Forking
What is new in this release:
- add __main__.py to run as a python script with "-m" option
What is new in version 0.1.2:
- add to be able to extend the argument parser with parent parser
- refactoring (matching regular expression, testing)
What is new in version 0.1.1:
- add "-i, --indexdir" option
Requirements:
- Python
Comments not found