Poss. not the best person to answer this.. but I'll take a shot..

Can you not limit your perl-script to a single folder, so that you can set:

Alias /scripts/  "/path/to/scripts/"

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

========

The way I figure this, is that https://mysite.com/scripts/* act the same way
as everything used to, and you can load your images from
https://mysite.com/images/* without complaints about crossing the
secure/nonsecure boundry...

Also, don't know about this, but would be curious to know, if you have a
whole site set up to use mod_perl, as below, and you also have an alias set
up (like the apache default /icons/ directory) which takes precedence?


Hope this helps..  Someone who knows what there talking about, please
correct me where I'm wrong!  ;-)

Jimbo

----- Original Message -----
From: "Viljo Marrandi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 02, 2002 1:58 PM
Subject: Many requests per page


> 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