<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div style="padding-bottom: 10px; padding-top: 5px;">
<div style="padding:12px; border:1px solid #8D3970; background-color:#F7F9FA; color:#8D3970; font-size:14px; line-height:22px; font-family: Calibri, Arial, Helvetica, sans-serif;">
<strong>CAUTION:</strong> This e-mail originated outside the University of Southampton.
</div>
</div>
<div>
<p><font size="2" face="sans-serif">Dear John</font><br>
<br>
<font size="2" face="sans-serif">thank you for your thoughts on the topic. You're right: after testing a lot it really looks like the request for a CGI script does not trigger the SSI handler. We've got to go the perl-based way rather than SSI.<br>
<br>
Kind regards<br>
Jens</font><br>
<br>
<font size="2" face="sans-serif">-- <br>
Jens Witzel<br>
Zentrale Informatik<br>
Universität Zürich<br>
Stampfenbachstrasse 73<br>
CH-8006 Zürich<br>
<br>
mail: jens.witzel@uzh.ch<br>
phone: +41 44 63 56777<br>
<a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.zi.uzh.ch%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C422e823a95fa4c0411de08d91153ac71%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637559873335524132%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=TZ5hzu9Cbr50IzwDGdcttjd26v6w%2BwqKl%2Fa1aIM00Xg%3D&reserved=0" originalSrc="http://www.zi.uzh.ch/" shash="Gj6QQ9+83R7Jv02OAjL5wX0cCfET7ZWUzmZGQ90AIK/juddjqJPMNJZlbACQ5S9uYB4aTf03dyaNZcyfmMgS8/ij3aOKOEQoBSqEISV1HxmE7UQBKeLWxyBJvkGebQIiBQIh8vzpb+OTIgGGZYhlIdN1xG2ilGc5X/HYpokEwfY=">http://www.zi.uzh.ch</a></font><br>
<br>
<img width="16" height="16" src="cid:1__=4EBB0C5DDFD790648f9e8a93df938690918c4EBB0C5DDFD79064@lotus.uzh.ch" border="0" alt="Inactive hide details for "John Salter" ---20.04.2021 18:11:15---Hmmm, good question! If you print an SSI instruction directly "><font size="2" color="#424282" face="sans-serif">"John
Salter" ---20.04.2021 18:11:15---Hmmm, good question! If you print an SSI instruction directly from the CGI script, does that get con</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">Von: </font><font size="1" face="sans-serif">"John Salter" <J.Salter@leeds.ac.uk></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">An: </font><font size="1" face="sans-serif">"eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>, "jens.witzel@uzh.ch" <jens.witzel@uzh.ch></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Datum: </font><font size="1" face="sans-serif">20.04.2021 18:11</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Betreff: </font><font size="1" face="sans-serif">RE: [EP-tech] Short question about SSI in dynamic CGI output</font><br>
</p>
<hr width="100%" size="2" align="left" noshade="" style="color:#8091A5; ">
<br>
<br>
<br>
<font size="2" color="#1F497D" face="Calibri">Hmmm, good question!<br>
</font><br>
<font size="2" color="#1F497D" face="Calibri">If you print an SSI instruction directly from the CGI script, does that get converted as expected? E.g. does</font><br>
<font size="3" face="Courier New">print '<!--#echo var="DATE_LOCAL" -->';</font><font size="2" color="#1F497D" face="Calibri"><br>
output a date, or '<!--#echo…'?</font><br>
<font size="2" color="#1F497D" face="Calibri"> </font><br>
<font size="2" color="#1F497D" face="Calibri">I haven't used SSIs alongside EPrints, but if the above doesn't interpret the SSI instruction my guess would be the PerlResponseHandler used for CGI scripts within EPrints::Apache::Rewrite module.</font><br>
<font size="2" color="#1F497D" face="Calibri"><br>
I find the diagram here: </font><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fperl.apache.org%2Fdocs%2F2.0%2Fuser%2Fhandlers%2Fhttp.html%23HTTP_Request_Cycle_Phases&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C422e823a95fa4c0411de08d91153ac71%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637559873335534085%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=x%2BNNi%2BenAKC9c7610sQVmKMCmcG6nW5Uez1%2F%2F8fy43Q%3D&reserved=0" originalSrc="https://perl.apache.org/docs/2.0/user/handlers/http.html#HTTP_Request_Cycle_Phases" shash="ZkNU0SsMe1TruDkOIosqh3mrBME+JqPtRI6u0Hy+wHegndM/UQjCRHRIy1UgXrT54kS4WvyhGRq8npcwT0I117o2x6RjE0MbRX2RkBHpDsBuH2/sIO7CuymhP3lt/JvE0M7KGvM5ACkb4DiTvinbRZ0yCuBtU7FntPgOYcvB0S4="><font size="2" color="#0000FF" face="Calibri"><u>https://perl.apache.org/docs/2.0/user/handlers/http.html#HTTP_Request_Cycle_Phases</u></font></a><font size="2" color="#1F497D" face="Calibri"> useful
to try and work out what the difference might be between e.g. a static page+template being served compared to a cgi script.<br>
<br>
The request for a CGI script might not trigger the SSI handler - but you may be able to add it to the stack, or a different phase (or even the output handlers).</font><br>
<font size="2" color="#1F497D" face="Calibri"> </font><br>
<font size="2" color="#1F497D" face="Calibri">The start of this page: </font><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FHow_to_enable_server_side_includes&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C422e823a95fa4c0411de08d91153ac71%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637559873335534085%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=xQIkCHILLPIbCSqyy0ctVL0cKgJuRF0%2Fcjg%2BPAHsw%2F0%3D&reserved=0" originalSrc="https://wiki.eprints.org/w/How_to_enable_server_side_includes" shash="GuVF/Lgf8IhuqToU/Kr0TeV0FcZVO5wC+SUZx54I2T7NQjeHfTEke09L6jCIwGI3kRx62FTd7B+avzeGKSqdDVnkw6/5wXNRTmiS8IXvHq8ID96aWD0uojosuefB1qRndQKw6M5dmnbPGIdI4KfIYONms+5z3XXY4ni5ZN3SIss="><font size="2" color="#0000FF" face="Calibri"><u>https://wiki.eprints.org/w/How_to_enable_server_side_includes</u></font></a><font size="2" color="#1F497D" face="Calibri"> indicates
that someone has been down this path before:<br>
"If you want to add dynamic content to the template you should do this via a template part in cfg.d/dynamic_template.pl"<br>
</font><br>
<font size="2" color="#1F497D" face="Calibri">They possibly included a maintenance.ssi file using perl-based methods rather than SSI methods?</font><br>
<font size="2" color="#1F497D" face="Calibri"> </font><br>
<font size="2" color="#1F497D" face="Calibri">Cheers,</font><br>
<font size="2" color="#1F497D" face="Calibri">John</font><br>
<font size="2" color="#1F497D" face="Calibri"> </font><br>
<font size="2" face="Calibri"><b>From:</b></font><font size="2" face="Calibri"> eprints-tech-bounces@ecs.soton.ac.uk [</font><font size="2" face="Calibri"><a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">mailto:eprints-tech-bounces@ecs.soton.ac.uk</a></font><font size="2" face="Calibri">]
</font><font size="2" face="Calibri"><b>On Behalf Of </b></font><font size="2" face="Calibri">jens.witzel--- via Eprints-tech</font><font size="2" face="Calibri"><b><br>
Sent:</b></font><font size="2" face="Calibri"> 20 April 2021 16:06</font><font size="2" face="Calibri"><b><br>
To:</b></font><font size="2" face="Calibri"> eprints-tech@ecs.soton.ac.uk</font><font size="2" face="Calibri"><b><br>
Subject:</b></font><font size="2" face="Calibri"> [EP-tech] Short question about SSI in dynamic CGI output</font><br>
<font size="3" face="Times New Roman"> </font><br>
<font size="2" color="#8D3970" face="Calibri"><b>CAUTION:</b></font><font size="2" color="#8D3970" face="Calibri"> This e-mail originated outside the University of Southampton.
</font>
<p><font size="2" face="Arial">Hi out there</font><font size="3" face="Times New Roman"><br>
</font><font size="2" face="Arial"><br>
maybe stupid. maybe simple, maybe offtopic, maybe not: </font><font size="3" face="Times New Roman"><br>
</font><font size="2" face="Arial"><br>
We found out, that Server Side Includes (SSI) inside phrase dynamic.xml or templates will not be interpreted by cgi-scripts like cgi/stats/report.
<br>
Scenario: We generate static code, push it into a simple textfile.ssi and try to include it in the template with
</font><font size="3" face="Courier New"> <!--#include virtual="/maintenance.ssi" --></font><font size="3" face="Times New Roman"><br>
</font><font size="2" face="Arial"><br>
So, in a nutshell: HowTo tell CGIs/Apache to use SSI after CGI has done? We thought, we tried out everything in Apache conf.<br>
Any hint is appreciated #-)<br>
<br>
Kind regards<br>
Jens</font><font size="3" face="Times New Roman"><br>
</font><font size="2" face="Arial"><br>
-- <br>
Jens Witzel<br>
Zentrale Informatik<br>
Universität Zürich<br>
Stampfenbachstrasse 73<br>
CH-8006 Zürich<br>
<br>
mail: </font><a href="mailto:jens.witzel@uzh.ch"><font size="2" color="#0000FF" face="Arial"><u>jens.witzel@uzh.ch</u></font></a><font size="2" face="Arial"><br>
phone: +41 44 63 56777</font><font size="2" color="#0000FF" face="Arial"><u><br>
</u></font><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.zi.uzh.ch%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C422e823a95fa4c0411de08d91153ac71%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637559873335544042%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=y%2BgI7%2BSaK33C%2F2srgZ%2BCrp%2BRFlrDMsJkgYRbZMEtyKk%3D&reserved=0" originalSrc="http://www.zi.uzh.ch/" shash="teS9DzSgnRDDLkSRfLT93ainrC7cbi4hsZrU43jceNNmgR9EsGDYGTJLRZNX+vY2TXP+OUxYL1BDAYLKCDePzgrpwtrivqCLN/e/pvEpambXCeDywJ/AmB4NtWD34/3rzB5rcwIZNEcbrPFKk52FLoKD+e7/rrf5VrsUpIzYE3E="><font size="2" color="#0000FF" face="Arial"><u>http://www.zi.uzh.ch</u></font></a>
</p>
<p></p>
<p></p>
</div>
</body>
</html>