On 2 November 2016 at 08:27, Ulli Horlacher <frams...@rus.uni-stuttgart.de> wrote: > "python -m SimpleHTTPServer" is really cool :-) > > But I need some more features: > > - some kind of a chroot, to prevent file access higher then the base > directory > > - a directory listing mit date and size information > > - an upload possibility > > I could modify /usr/lib/python2.7/SimpleHTTPServer.py by myself, but maybe > someone already has implemented these features? > > Use case: users with notebooks in a foreign (WiFi) LAN want to exchange > some files on-the-fly, quick-and-dirty. Using USB sticks is a no-go! :-)
SimpleHTTPServer is meant to be used for development and testing. It should not be used for anything remotely serious for security and speed reasons. Instead, you should use a real web server, such as nginx or apache. Those will do the first two properly, and the last one could be handled by a simple-ish PHP script. Or a full-fledged app in Django or Flask if you feel like it. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list