SSI per site?

How can enable SSI on single site?

You can do this in a .htaccess file in the html folder for that account.

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

That would be one example. See: http://httpd.apache.org/docs/1.3/howto/ssi.html for more details.

Paul

and without use .htaccess ?

You can put it in the individual accounts vhost conf file:

/etc/httpd/conf.d/domain.com.conf

Where domain.com is the domain name of the account you want to enable SSI. Then restart Apache.

[QUOTE=IWorx-Paul;11216]You can do this in a .htaccess file in the html folder for that account.

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

That would be one example. See: http://httpd.apache.org/docs/1.3/howto/ssi.html for more details.

Paul[/QUOTE]

Hello,

This is for Apache 1.3

I personnaly use

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

and
Options +Includes in an .htaccess file

I also recommand to use this

IncludesNOEXEC

Which prevent execution of command like

<pre>
<!–#exec cmd=“cat /etc/passwd” –>
</pre>

for exemple

So our config is

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
IncludesNOEXEC

and in an htacess file or in the vhost config file
Options +Includes

Hope this help

Pascal

ps : You might also use the XBitHack on and then chmod +x the page that has to use SSI.

This way you don’t have to update your page from .htm to .shtm

Pascal