Posts

Showing posts from December, 2013

Simple Python WebServer: Share/View your Linux Filesystem files over Http Server

Image
A quick tip for Linux lovers.

Python allows you to start a quick http server by a single command.


Suppose you want to share files and directory of current working directory over http. No need to set up a complete web server for that. Python  can do this magic in a Single command.

 [root@clone-1 /]# python -m SimpleHTTPServer

Serving HTTP on 0.0.0.0 port 8000 ...
localhost.localdomain - - [02/Dec/2013 10:15:18] "GET / HTTP/1.1" 200 -
localhost.localdomain - - [02/Dec/2013 10:15:22] "GET /boot/ HTTP/1.1" 200 -
localhost.localdomain - - [02/Dec/2013 10:15:24] "GET /boot/symvers-2.6.18-164.el5.gz HTTP/1.1" 200 -
localhost.localdomain - - [02/Dec/2013 10:15:32] "GET /home/ HTTP/1.1" 200 -
localhost.localdomain - - [02/Dec/2013 10:15:34] "GET /home/yogi/ HTTP/1.1" 200 -
192.168.91.1 - - [02/Dec/2013 10:20:12] "GET / HTTP/1.1" 200 -
192.168.91.1 - - [02/Dec/2013 10:20:12] code 404, message File not found
192.168.91.1 - - [02/Dec/2013 …