LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-23-2003, 09:22 PM   #1
m4rccd
LQ Newbie
 
Registered: Aug 2003
Posts: 10

Rep: Reputation: 0
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
 
Old 08-24-2003, 06:04 AM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
python variable question bendeco13 Programming 6 02-03-2005 07:22 AM
Python question gamehack Programming 5 01-03-2005 05:21 AM
Python question bluefire Programming 5 09-28-2004 12:30 PM
python question ywchen2000 Programming 1 04-20-2004 11:46 PM
A Python question gamehack Programming 2 03-17-2004 09:09 PM


All times are GMT -5. The time now is 03:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration