Re: Avoid processing for images?

Jacob Smullyan <[email protected]> Fri, 16 Sep 2005 11:44:06 -0400
Newsgroups gmane.comp.web.skunkweb
Message-ID <[email protected]>
On Fri, Sep 16, 2005 at 10:40:29AM -0400, Vsevolod (Simon) Ilyushchenko wrote:
> Hi,
> 
> Is there a way to tell Skunk to avoid processing certain file types 
> (images, videos, etc)? I know how to exclude a certain directory, but I 
> would rather use a more generic command to exclude .jpg, .mov etc 
> wherever they are found?

I assume this is in a mod_skunkweb context, and is thus really an
apache question.  SkunkWeb itself will of course serve up those files
anyway, just not as efficiently and with negative consequences on its
availability to do other work.

I'm sure there is some apache foo that could help out.  Possibilities
worth checking out:

   1. using a rewrite rule that mapped the request internally to a different
      virtual host that isn't configured to use the skunkweb handler (or 
      to proxy a different webserver).
   2. set the skunkweb handler only for *.html, *.py, etc.
   3. set the default handler for *.jpg after setting the skunkweb handler.

I haven't tried any of these.  If 2. or 3. work, it is entirely by
accident, as I don't think mod_skunkweb was designed with that usage
in mind; I think 1. must be workable.

Of course, another possibility is to use something other than
mod_skunkweb, if it turns out to impose awkward configuration
constraints.  SkunkWeb is easy to set up with fastcgi and lighttpd,
for instance (and mod_scgi is another possibility).  If you want
static files to get served quickly, that isn't a bad idea.

Cheers,

js


> 
> Thanks,
> Simon
> -- 
> 
> Simon (Vsevolod ILyushchenko)   [email protected]
> 				http://www.simonf.com
> 
> Terrorism is a tactic and so to declare war on terrorism
> is equivalent to Roosevelt's declaring war on blitzkrieg.
> 
> Zbigniew Brzezinski, U.S. national security advisor, 1977-81
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Skunkweb-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/skunkweb-list
> 

-- 
Jacob Smullyan
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDKuhGuqamFyFXXLIRAgMuAJ9F++qTJN7KBb1BDy+oByxPdiJG6wCgtmAq
3L0e4GMEirGS/eTyI5FmMQY=
=W15R
-----END PGP SIGNATURE-----