Opened 13 days ago

Closed 12 days ago

#13766 closed Question/How do I...? (fixed)

How do I set up for server-side includes?

Reported by: https://id.mayfirst.org/rdale Owned by:
Priority: Medium Component: Tech
Keywords: Cc:
Sensitive: no

Description

How do I set up for server-side includes on my website?

Change History (5)

comment:1 Changed 12 days ago by https://id.mayfirst.org/jamie

  • Resolution set to fixed
  • Status changed from new to closed

We don't enable server side includes by default on our shared servers, but I just did on erica - so you should be able to use them now (a2enmod include).

comment:2 Changed 12 days ago by https://id.mayfirst.org/rdale

  • Resolution fixed deleted
  • Status changed from closed to assigned

Hi jaimev! Thank you. Do I have to add something to my configuration to make this work? It doesn't seem to be working. Thank you.

comment:3 Changed 12 days ago by https://id.mayfirst.org/jamie

Oh sorry - I didn't give a complete answer. You'll have to add the following to your web config via the control panel (or via a .htaccess):

Options +Includes
AddType text/html shtml
AddHandler server-parsed shtml 

Or... add it to a .htaccess file (but you may need an AllowOverride directive in your control panel config).

comment:4 Changed 12 days ago by https://id.mayfirst.org/rdale

Thank you jaimie! It works now!!! :D

comment:5 Changed 12 days ago by https://id.mayfirst.org/rdale

  • Resolution set to fixed
  • Status changed from assigned to closed

Please login to add comments to this ticket.

Note: See TracTickets for help on using tickets.