Re: [OT] minimalist web server

2007-12-31 Thread Daniel Fetchinson
> Using DSL (Damn Small Linux) try apache! Or you can try litehttpd > > > > Hi list, > > > > This is way off topic but maybe somebody knowledgeable can help. > > > > I'm looking for the most minimalist web server ever that does nothing > > else than return a fixed static page for every request.

Re: [OT] minimalist web server

2007-12-03 Thread James Matthews
Using DSL (Damn Small Linux) try apache! Or you can try litehttpd On Dec 2, 2007 3:35 AM, Daniel Fetchinson <[EMAIL PROTECTED]> wrote: > Hi list, > > This is way off topic but maybe somebody knowledgeable can help. > > I'm looking for the most minimalist web server ever that does nothing > el

Re: [OT] minimalist web server

2007-12-02 Thread Daniel Fetchinson
> > The reason I need this is that my current best strategy to avoid ads in > > web pages is putting all ad server names into /etc/hosts and stick my > > local ip number next to them (127.0.0.1) so every ad request goes to my > > machine. I run apache which has an empty page for 404 errors so I'll

Re: [OT] minimalist web server

2007-12-02 Thread ghirai
> On Dec 1, 2007 7:02 PM, Daniel Fetchinson <[EMAIL PROTECTED]> wrote: >> > > I'm looking for the most minimalist web server ever that does nothing >> > > else than return a fixed static page for every request. Regardless of >> > > what the request is, it just needs to be an HTTP request to port 8

Re: [OT] minimalist web server

2007-12-02 Thread Michael Ströder
Paul Rubin wrote: >> from SimpleHTTPServer import SimpleRequestHandler >> handler = HTTPServer (('', 8000), SimpleRequestHandler) > > > I think you mean SimpleHTTPRequestHandler. Note that actually reads > the url path and looks in the file system to get the file of that > name, which isn't what

Re: [OT] minimalist web server

2007-12-02 Thread I V
On Sat, 01 Dec 2007 19:02:41 -0800, Daniel Fetchinson wrote: > The reason I need this is that my current best strategy to avoid ads in > web pages is putting all ad server names into /etc/hosts and stick my > local ip number next to them (127.0.0.1) so every ad request goes to my > machine. I run a

Re: [OT] minimalist web server

2007-12-01 Thread Paul Rubin
> from SimpleHTTPServer import SimpleRequestHandler > handler = HTTPServer (('', 8000), SimpleRequestHandler) I think you mean SimpleHTTPRequestHandler. Note that actually reads the url path and looks in the file system to get the file of that name, which isn't what the OP wanted. The OP might

Re: [OT] minimalist web server

2007-12-01 Thread Mel
Daniel Fetchinson wrote: > Maybe I found what I'm looking for: cheetah, a web server that is 600 > lines of C code and that's it :) > > http://freshmeat.net/projects/cheetahd/ For the sake of on-topicness, there is this: #!/usr/bin/env python # -*- coding: ASCII -*- '''$Id$ ''' from BaseHTTPSe

Re: [OT] minimalist web server

2007-12-01 Thread Dave Benjamin
Daniel Fetchinson wrote: > The reason I need this is that my current best strategy to avoid ads > in web pages is putting all ad server names into /etc/hosts and stick > my local ip number next to them (127.0.0.1) so every ad request goes > to my machine. I run apache which has an empty page for 40

Re: [OT] minimalist web server

2007-12-01 Thread David Tweet
Running this in Python should create a server running on localhost port 80 that only serves blank pages: import SimpleHTTPServer import SocketServer class MyHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_GET(self): print >> self.wfile, "" server = SocketServer.TCPServer(("", 80

Re: [OT] minimalist web server

2007-12-01 Thread Daniel Fetchinson
Maybe I found what I'm looking for: cheetah, a web server that is 600 lines of C code and that's it :) http://freshmeat.net/projects/cheetahd/ On 12/1/07, Daniel Fetchinson <[EMAIL PROTECTED]> wrote: > > > I'm looking for the most minimalist web server ever that does nothing > > > else than retu

Re: [OT] minimalist web server

2007-12-01 Thread Daniel Fetchinson
> > I'm looking for the most minimalist web server ever that does nothing > > else than return a fixed static page for every request. Regardless of > > what the request is, it just needs to be an HTTP request to port 80, > > the web server should return always the same html document. What would > >

Re: [OT] minimalist web server

2007-12-01 Thread Paul Rubin
"Daniel Fetchinson" <[EMAIL PROTECTED]> writes: > I'm looking for the most minimalist web server ever that does nothing > else than return a fixed static page for every request. Regardless of > what the request is, it just needs to be an HTTP request to port 80, > the web server should return alway

[OT] minimalist web server

2007-12-01 Thread Daniel Fetchinson
Hi list, This is way off topic but maybe somebody knowledgeable can help. I'm looking for the most minimalist web server ever that does nothing else than return a fixed static page for every request. Regardless of what the request is, it just needs to be an HTTP request to port 80, the web se