*New 12.1 series Release:
2019-11-08: XigmaNAS 12.1.0.4.7091 - released!

*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

mod_ssi

Webserver service.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
MDSchilling
NewUser
NewUser
Posts: 1
Joined: 18 Dec 2014 07:25
Status: Offline

mod_ssi

#1

Post by MDSchilling » 18 Dec 2014 07:28

Has anyone successfully got an include file to work?

I have set Auxiliary parameters to use mod_ssi and set ssi.extension but files do not get included in final web page.

BlackPeter
Starter
Starter
Posts: 43
Joined: 03 Nov 2013 19:45
Location: Spain
Contact:
Status: Offline

Re: mod_ssi

#2

Post by BlackPeter » 04 Jan 2015 18:59

in Auxiliary param youshould add this, but you have to activate mod_compress too.Note that if you use mod_compress mod_ssi must come first to function.

Code: Select all

#######################################################################
##
##  Server Side Includes 
## -----------------------
##
## see /usr/share/doc/packages/lighttpd/ssi.html
##
server.modules += ( "mod_ssi" )

##
## which extensions should be ran through mod_ssi.
##
ssi.extension              = ( ".shtml" )

##
#######################################################################


next step, change path acording to your server locacion

Code: Select all

nano /home/www-data/sample.shtml
 
<html>
<head><title>SSI sample</title></head>
<!--#exec cmd="/bin/uname -a" -->
</html>
[url]http://yourserverip:port/sample.shtml[/url]

if all ok you should see the output info
Hostname it-service.sytes.net
Version 12.0.0.4 - Reticulus (revision 6743)
Compiled 06/09/2019 01:26:07
Platform OS FreeBSD 12.0-RELEASE-p5 #0 r348788M: Fri Jun 7 22:53:38 CEST 2019
Platform x64-full on Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz
System Wistron Corporation ProLiant DL120 G5

Post Reply

Return to “WebServer”