Python question
Hi im trying to make a REALLY simple web server on python.. Just to serv an index.html file, and an image.. using BaseHTTPServer SocketServer SimpleHTTPServer. I checked the python docs. but I just cant figure out how to code one.. I had some experience with python, but this, is kinda hard for me, anyways can anyone help showing me an example of a small webserver?
Thanks in advance |
Python already has one, see the module document server. I forget which port it runs on, but in Windows I had a menu link which fired it up and pointed a browser to it. :)
Btw, I really suggest you dont use your own server on a network which connects to the internet, that's rather risky. Use apache if you want a great server. :) |
All times are GMT -5. The time now is 06:30 AM. |