Messages in this thread | | | Date | Wed, 09 Jun 1999 23:36:17 +0200 | From | Roger Larsson <> | Subject | Re: Preparations for ZD's upcoming Apache/Linux benchmark |
| |
Hi all,
How about using the path to decide if the page is static or not, instead of using hacks that will never be complete enough.
My idea: - if the path a contains a directory named "static" then the page is static and can be handled by khttpd. If khttpd is not running it will work anyway, without polluting the environment with hacks.
Example: $WEBROOT/logo.gif will be handled by user space http server (if $WEBROOT does not contain a "static" directory) $WEBROOT/static/logo.gif can be handled by khttpd if it is running.
=> Any page designer can decide (think private home pages), he would know if a page, gif ... is static or not.
Implementation details.
Searching for a specific string in a text are described in several text books, like Algorithms by Robert Sedgewick. One that I think is promising is Rabin-Karp.
"Moving hash value" - can be compared to moving average over characters. When it matches you got a likely candidate, by using weights you could almost avoid false indications.
Regards, Roger Larsson Skellefteå, Sweden "Henning P. Schmiedehausen" wrote: > > torvalds@transmeta.com (Linus Torvalds) writes: > > >There may be implementation issues that make it impossible, of course. I > >have by no means looked very deply at the problem set. > > I am really afraid that you opened up a whole can of worms with this > idea, considering that even a simple static HTML page can contain lots > of different headers like Date:, Expires:, Content-Type:, Connection: > and so on. I'm not that happy about getting things like "building a > Date: Header with time zone and everything" in the kernel. And if you > use files with pre-tacked headers, you lose these informations which > are crucial to the whole proxy-caching process on the Net. > > I think, khttpd is a path along which (sooner or later) lies madness > and an apache in kernel space. > > Kind regards > Henning > > -- > Dipl.-Inf. (Univ.) Henning P. Schmiedehausen -- Geschaeftsfuehrer > INTERMETA - Gesellschaft fuer Mehrwertdienste mbH hps@intermeta.de > > Hutweide 15 Fon.: 09131 / 50654-0 info@intermeta.de > D-91054 Buckenhof Fax.: 09131 / 50654-20 > > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.rutgers.edu > Please read the FAQ at http://www.tux.org/lkml/
--
The Internet interprets Windows as damage, and routes around it.
Roger Larsson Skellefteå Sweden
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |