mardi 29 septembre 2009


3 months ago, i was tchatting with a friend on "how to share quickly my directory".
Oh, i forget to say.. my friend is a python-lover :)

Result 1 :
python -c 'import SimpleHTTPServer;SimpleHTTPServer.test()'
so nice ! this httpd is ok and chrooted :) but not multihtread ...
My friend is magic :
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import SocketServer
import BaseHTTPServer
import sys, os
import CGIHTTPServer
port = 8000
class ThreadingCGIServer(SocketServer.ThreadingMixIn, BaseHTTPServer.HTTPServer):
server = ThreadingCGIServer(('', port), CGIHTTPServer.CGIHTTPRequestHandler)
print "Serveur demarre sur le port %s." % port
    while 1:
except KeyboardInterrupt:
    print "Fini !"

Ok, you can finding another source on then net, it's not a creation but keep this in your home :) 
Another good source :


ok, so i'm here to share my poor knowledge, links, stuff and my fucking curiosity !