[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
chrooted apache (was: Re: Built-In Apache & .shtml Files)
On Sat, Feb 01, 2003 at 11:39:12PM +0000, Alex Kirk wrote:
>
> I migrated over a while ago to the built-in Apache from a custom-rolled one,
> so as to get SSL. It's great; however, any server-parsed HTML files I had
> (good ol' .shtml) don't work any more.
Define "don't work'", please.
> I sincerely doubt that this ability would not have been compiled in. Am I
> just missing something in my httpd.conf, or is there something odd I should
> know about here?
It is compiled in. It is the mod_include.c that shows when you
do `httpd -l`
But this is probably due to the common chroot-quirks:
If you had this line in your .shtml-file before:
<!--#exec cmd="/var/www/scripts/temperature.rb"-->
You need to change this to
<!--#exec cmd="/scripts/temperature.rb"-->
Or you could do this ugly hack to circumvent all other stuff that relates
to /var/www instead of / (as the chrooted /var/www will be):
# mkdir -p /var/www/var
# cd /var/www/var
# ln -s / www
This will (when the httpd is chrooted to /var/www)
effectively be a symlink from /var/www to /
thus making old things that refers to /var/www work without changes.
This symlinking trick can of course only be done within the /var/www-region,
all the other reffered stuff has to be copied over to /var/www in a proper
way.
YMMV of course.
/magnus
--
http://x42.com