Simple Webserver in Python
Sometimes I need a simple webserver for serving files for my kickstart installations. I have found a simple solution:
python -m SimpleHTTPServer 80
This creates a simple Webserver on port 80 and its root path is the directory it ran from. For more details about it, visit python docs: http://docs.python.org/library/simplehttpserver.html
2 Comments
Other Links to this Post
RSS feed for comments on this post. TrackBack URI
By BuZain, July 27, 2009 @ 2:21 am
That’s a cool idea. Thanks for sharing
By Hussein Nasser, July 28, 2009 @ 9:51 am
That’s indeed a useful script and interesting thing you found
Keep updating us with your great work