Steve4950 has asked for the wisdom of the Perl Monks concerning the following question:

When I turn on Apache:ASP and try to load a few html files it messes up the graphics at the top any ideas?

Now if I turn off the ASP, graphics load fine...
Page with code in html: http://www.clark.cc.oh.us/asp/student.html
page with no code in html: http://www.clark.cc.oh.us/asp/student2.html

in http.conf:
Location /asp/
SetHandler perl-script
PerlHandler Apache::ASP
PerlSetVar Global /tmp
/Location

Thanks for your help....Steve

Replies are listed 'Best First'.
Re: Problem with graphics and Apache::ASP
by extremely (Priest) on Apr 04, 2001 at 01:07 UTC
    The ASP engine is parsing your graphics and mucking with "return"s and such. Either move the images directory out of the /asp/ tree or switch the handler back in the subdirectory like:
    <Location /asp/images/ SetHandler default-handler </Location>

    --
    $you = new YOU;
    honk() if $you->love(perl)

      I also found this in mod_perl mailing list to process the file instead of the location. Darn thing :)

      Change Location directive in httpd.conf:
      Files ~ (\.htm)
      SetHandler perl-script
      PerlHandler Apache::ASP
      PerlSetVar NoState 1
      /Files


      Thanks,
      Steve