Enabling SSI / server side includes

#1
Does anyone have a guide for enabling SSI (server side includes) with OpenLiteSpeed?

The Apache way is to just load the "include" module:

# a2enmod include

There is no such module in OpenLiteSpeed - the source code indicates SSI support is built-in. So how does one activate it?
 
#2
Hi Jamie-VV,

As it turns out, SSI support was disabled, likely due to many changes to the server code. I will take a look at this to see if I can get it working again for the next release.

That said, there are no real steps for enabling SSI.
As long as shtml is listed in the MIME settings file (Server Configurations->General Settings->MIME Settings, it is included by default), it should work by default unless you have scripting disabled.

I will get back to you as soon as I can.

Cheers,
Kevin
 
#3
Hi Jamie-VV,

You may have noticed that we released a new version today (just happened, so maybe not).

To update you, the SSI support was not a part of this release. I managed to get it working, but it involves some big changes to the core server code, so we are not ready to release it without more testing.

I hope you understand, and hope that you are happy with OpenLiteSpeed otherwise.

Best,
Kevin
 
#5
Hey Jamie,

Quick update, we just released OLS 1.4.16. This is mostly bug fixes and some updates.

The SSI support is still being tested. It will be packaged in with another new feature for the 1.5 release because of the possible instability. Just letting you know that it's not forgotten about, it is just a significant change.

Kevin
 
#6
That's okay, thanks for the update.

We are currently using a workaround - the client-side jQuery load() function. The end user won't notice the difference, however some search engines don't attempt to index the loaded part, so the SSI support will be helpful with that by presenting what appears to be a static page.
 

mans

New Member
#7
De current version of openLiteSpeed is 1.7.19

I'm trying to use SSI but so far it is networking. My test file looks like this

name : test.shtml
content :

<html>
<body>
test 1
<br>
--#exec cgi="/cgi-bin/cgitest.cgi?mans=123" --
<br>
<hr>
<br>
test2
<br>
--# include virtual="/cgi-bin/cgitest.cgi?henk=246" -->
<br><hr>
test3
<br>
<!--#include virtual="/test.txt" -->
<pre>
<!--#exec cmd="ls" -->
</pre>
</body>
</html>

when calling the page it is keep spinning / loading.
when you only include
<!--#include virtual="/test.txt" -->
that part is working.

Is there a possibility to get the "scripts" working ?


Mans
 
Top