Simple HTTP server using Python
1) Change to your www directory, a location of your files, include at least index.html:
$ cd /Users/uki/Python/web/SimpleHTTPServer/www
2) Start server at port you want:
$ python -m SimpleHTTPServer 8080
3) Open: http://localhost:8080/
4) Monitor requests:
uki:www uki$ python -m SimpleHTTPServer 8080
Serving HTTP on 0.0.0.0 port 8080 ...
1.0.0.127.in-addr.arpa - - [13/Aug/2012 20:21:00] "GET / HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [13/Aug/2012 20:21:00] code 404, message File not found
1.0.0.127.in-addr.arpa - - [13/Aug/2012 20:21:00] "GET /favicon.ico HTTP/1.1" 404 -
1.0.0.127.in-addr.arpa - - [13/Aug/2012 20:21:12] "GET / HTTP/1.1" 200 -
1.0.0.127.in-addr.arpa - - [13/Aug/2012 20:21:12] code 404, message File not found
1.0.0.127.in-addr.arpa - - [13/Aug/2012 20:21:12] "GET /favicon.ico HTTP/1.1" 404 -
find similar posts:
Python,
Web Server
My favorite quotations..
“A man should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.” by Robert A. Heinlein
"We are but habits and memories we chose to carry along." ~ Uki D. Lucas
Recommended pages
Popular Recent Articles
-
View on Amazon https://amzn.to/3xTc7sx Please SUBSCRIBE: https://ukidlucas.beehiiv.com/
-
I have noticed a very unsettling statistic on my blog. This prompted a fascinating question about AI, blogs' future, and maybe even the...
-
I live in a very rugged Pacific Northwest (PNW). The terrain consists of sharp rocks in summer and wet or snow-covered sharp rocks in winte...
-
In this post, I reflect on the profound impact of habits and effective time management over a year. I share personal experiences and stra...
-
All images and videos were taken by Uki, the author. At this point, I could only export raw movie footage from today's dive. In the fut...
-
After four meetings in a row, I had the need to get out of the office and go to Redmond French Cafe . The “Croque Madame” plate is not the b...
-
See the photo below. When I was posting my previous article on X.co (Twitter) I was literally following a post of Elon Musk. I thought it wa...
-
I have been wearing wool products for a very long time now. The highlanders of the region where I was born were wearing wool in winter and ...
-
You know when you live in the right town when, on a single walk, you have to cross under a fallen tree and chase a coyote out of your path. ...
-
This slingshot shot took a lot of practice , but she had fun and became very consistent . Buy it on Amazon: Item Name Author Producer Amaz...