> 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.
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
> > 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
> 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
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
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
> 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
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
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
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
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
> > 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
> >
"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
13 matches
Mail list logo