Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Aug 1997 08:16:27 -0400 (EDT)
From:      Brian Clapper <bmc@WillsCreek.COM>
To:        questions@FreeBSD.ORG
Subject:   Re: Server Side includes
Message-ID:  <199708281216.IAA01870@current.willscreek.com>
In-Reply-To: <25928745@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Michael Richards wrote:

> I realise that this question is probably more suited to an apache list, but

It is.  Also, see http://WWW.Apache.ORG/ for comprehensive documentation on
Apache.

> does anyone know off the top how you make apache use server side includes
> for all the .html files?

In "srm.conf", find these lines:

        # If you want to use server side includes, or CGI outside
        # ScriptAliased directories, uncomment the following lines.

        AddType text/x-server-parsed-html .shtml

Change the ".shtml" to ".html".

Then, if Apache is running, issue this command as root:

        kill -1 `cat $APACHE_PID_FILE`

where $APACHE_PID_FILE is the location of your server's PID file, as
configured in "httpd.conf".
-----
Brian Clapper, bmc@WillsCreek.COM, http://WWW.WillsCreek.COM/
There is one safeguard known generally to the wise, which is an advantage
and security to all, but especially to democracies as against despots. What
is it?  Distrust.
        -- Demosthenes: Philippic 2, sect. 24.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708281216.IAA01870>