You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by Dmitriy Setrakyan <ds...@apache.org> on 2015/02/21 13:37:41 UTC

website includes

Hi,

Is there a way to use server-side-includes to avoid repetition of HTML code
on Apache project websites? What is the recommended approach?

I have done lots of googling, but couldn't find anything.

D.

Re: website includes

Posted by Dmitriy Setrakyan <ds...@apache.org>.
Thanks, Brane! Will give it a shot.

D.

On Thu, Feb 26, 2015 at 3:35 AM, Branko Čibej <br...@apache.org> wrote:

> On 21.02.2015 13:37, Dmitriy Setrakyan wrote:
> > Hi,
> >
> > Is there a way to use server-side-includes to avoid repetition of HTML
> code
> > on Apache project websites? What is the recommended approach?
>
> Yes, there is, you must enable server-side includes.
>
> Subversion's site uses SSI via the
>
>     <!--#include virtual=URI -->
>
> pragma comment, and puts this in the site's .htaccess file (in the root
> of the published tree in Subversion):
>
>     Options +Includes
>
> You do have to tell Infra to enable mod_ssi on the box that serves the
> site, but I think that should be on by default.
>
> -- Brane
>
>

Re: website includes

Posted by Branko Čibej <br...@apache.org>.
On 21.02.2015 13:37, Dmitriy Setrakyan wrote:
> Hi,
>
> Is there a way to use server-side-includes to avoid repetition of HTML code
> on Apache project websites? What is the recommended approach?

Yes, there is, you must enable server-side includes.

Subversion's site uses SSI via the

    <!--#include virtual=URI -->

pragma comment, and puts this in the site's .htaccess file (in the root
of the published tree in Subversion):

    Options +Includes

You do have to tell Infra to enable mod_ssi on the box that serves the
site, but I think that should be on by default.

-- Brane