How run web software *locally* easily?

S

seberino

If grandma wanted to run some web application software (HTML files,
CGI/Python scripts)
*locally*, must she install a full blown Apache server with all the
trimmings??

Is there some easy way to somehow perhaps embed a minimal web server in
a Python tar ball
or some other clever trick to make grandma's life easier?

Chris
 
P

Paul Rubin

Is there some easy way to somehow perhaps embed a minimal web server in
a Python tar ball

Yes, sure, see any of the HTTP server classes in the stdlib.
Just listen on a localhost socket and pop a browser to point to that socket.
 
F

Fuzzyman

For development I run my own modified version of CGIHTTPServer.

It is called CGITHTTPServerWithSSI -
http://www.voidspace.org.uk/python/recipebook.shtml#ssi

It implements *some* SSI functions and allows you to maintain sites in
*two* folders. A main folder and a second 'development' folder that
just has stuff you're working on. It looks in the development folder
first.

The HTTPServer classes make great base classes for messing around with
your own custom implementations for testing.

All the best,

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top