Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Aug 2003 16:32:31 -0500
From:      "Joey Teel" <joeyteel@earthlink.net>
To:        "'questions'" <questions@freebsd.org>
Cc:        'paul beard' <paulbeard@mac.com>
Subject:   RE: mod_perl configuration questions
Message-ID:  <003901c36a87$3ba600d0$0400a8c0@RUKI>
In-Reply-To: <3F48EDC0.5060506@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Chuck Swiger wrote:
>=20
> > When you try to add mod_perl, the result is your perl code=20
> runs faster,=20
> > but apache no longer serves static HTML...?  If so, that is=20
> remarkably=20
> > odd.  What does the Apache access and error log look like=20
> when you try=20
> > to access a .gif or some such that worked before you added mod_perl?
> >=20
>=20
> This is what I get when I uncomment the following lines:
>=20
> [Sun Aug 24 09:44:13 2003] [error] access to=20
> /usr/www/movabletype/index.html failed for 192.168.2.10, reason:=20
> file permissions deny server execution
>=20
> #PerlModule Apache::Registry
> #<Location /movabletype/>
> #SetHandler perl-script
> #PerlHandler Apache::Registry
> #Options +ExecCGI
> #PerlSendHeader On
> #allow from all
> #</Location>
>=20
> --=20

Hi, I had this same problem when I did something similar with my
install.  When using mod_perl in this fashion, it changes the behavior
of the directory and it's subdirectories to behave the same way a
ScriptAliased directory would behave, basically, you can't serve static
content from that location.

Move all the static content (html, css, images, etc.) to a different
directory (to use the example from the MT manual, use mt-static) and
modify your mt.cfg file to add/change the StaticWebPath option to point
to the location of the static files.

>From what I remember (this was about 4 or 5 months ago) that was all I
had to do to get it working properly.

Joey




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003901c36a87$3ba600d0$0400a8c0>