This tip is really useful when you need a really quick web server running without too much hassle. Python comes with http server built-in that you can activate in a matter of seconds if you have python already installed. If you haven't install it, you might need an additional few minutes to install it. Below are the steps (this is assuming you are using redhat/fedora linux):
1. open a terminal and install python
# yum install python2. Once done, browse to any directory that you want to be your document root directory, in this example I'll use /home/myuser
# cd /home/myuser3. Run the below command to start the simple http server, where 8000 is the port number the server will use
# python -m SimpleHTTPServer 80004. Now open a browser, and type http://192.168.1.2:8000 to access the server, where 192.168.1.2 is your machine's ip address
Serving HTTP on 0.0.0.0 port 8000 ...