Hello,

I'm using Apache 1.3.22, mod_perl 1.25 and Template-Toolkit 2.06.

How can I make my system so, that my perl handler is not called for each
image, css and script the page has? Apache conf has following lines:

  <Location />
     SetHandler          perl-script
     PerlHandler         My::Site
     PerlSendHeader      On
  </Location>

I tried to check $r->content_type in FixupHandler (if content is img/gif
or whatever, I could tell Apache not to call My::Site), but it was empty,
so I couldn't use it to check what client requested. One solution
that I could think of, was to make Apache conf use <File *.html> directive
instead of Location, but I'd like to avoid this, if possible (it's a long
story ;).

And I can't put all static files to other VirtualHost, because this site
is going to use Secure HTTP and all files must come from one place, or the
client must answer to every image that it's ok to load it from another
place.

Thanks in advance.

Rgds,
Viljo

Reply via email to