<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<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>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hmmm, good question!<br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">If you print an SSI instruction directly from the CGI script, does that get converted as expected? E.g. does<o:p></o:p></span></p>
<p class="MsoNormal"><tt>print '&lt;!--#echo var=&quot;DATE_LOCAL&quot; --&gt;';</tt><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><br>
output a date, or '&lt;!--#echo&#8230;'?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><br>
I find the diagram here: <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&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccafc9bea74bd473dcc3808d90416e633%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637545318663801062%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=MOVbTny5OFNbYV8ILVQSCJ8uNbxDvLzqMdPRUE7Frzc%3D&amp;reserved=0" originalSrc="https://perl.apache.org/docs/2.0/user/handlers/http.html#HTTP_Request_Cycle_Phases" shash="llmKs2p+oQ9bs8YZ6rGKlvYAK2oNET0tCK7I9OohpdX2slFqTAMUX21MWAjWVUuxZDCVy6Wvty/g2JbyunhhoQNhBe5zS/Hgcmttyvhvl+4VzfV46LehHG+JpF7bxSN0jt8SrEk76tiyxtyV7EtbYsJbw/ki+eSYby5wGEZJw0I=">
https://perl.apache.org/docs/2.0/user/handlers/http.html#HTTP_Request_Cycle_Phases</a> 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).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">The start of this page:
<a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FHow_to_enable_server_side_includes&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccafc9bea74bd473dcc3808d90416e633%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637545318663801062%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=IMkZ8R3o4bioa%2FpY5EWenyEDtLVPbLGzCXXZrrbwPMI%3D&amp;reserved=0" originalSrc="https://wiki.eprints.org/w/How_to_enable_server_side_includes" shash="LsFhGy+6DEpR97OE8n3oRSNV8FfoYB3ot47VNiiSU5bs0s6UKLDEBMm9fpmK4A7mk2TlHdCvkwpLZpg677LaiGC2W5wnC7PFrefvtsrSi7pJUf4zV6EWc5VAyjQBKoCReHLdp+mquVntcP0cV0Q/I1ou5CsJloesOBcBUkR8Ku4=">https://wiki.eprints.org/w/How_to_enable_server_side_includes</a> indicates that someone has been down this path before:<br>
&quot;If you want to add dynamic content to the template you should do this via a template part in cfg.d/dynamic_template.pl&quot;<br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">They possibly included a maintenance.ssi file using perl-based methods rather than SSI methods?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">John<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
<b>On Behalf Of </b>jens.witzel--- via Eprints-tech<br>
<b>Sent:</b> 20 April 2021 16:06<br>
<b>To:</b> eprints-tech@ecs.soton.ac.uk<br>
<b>Subject:</b> [EP-tech] Short question about SSI in dynamic CGI output<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div style="border:solid #8D3970 1.0pt;padding:9.0pt 9.0pt 9.0pt 9.0pt">
<p class="MsoNormal" style="line-height:16.5pt;background:#F7F9FA"><strong><span style="font-size:10.5pt;font-family:&quot;Calibri&quot;,sans-serif;color:#8D3970">CAUTION:</span></strong><span style="font-size:10.5pt;font-family:&quot;Calibri&quot;,sans-serif;color:#8D3970"> This
 e-mail originated outside the University of Southampton. <o:p></o:p></span></p>
</div>
</div>
<div>
<p><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">Hi out there</span><br>
<br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">maybe stupid. maybe simple, maybe offtopic, maybe not:
</span><br>
<br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">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.
</span><br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">Scenario: We generate static code, push it into a simple textfile.ssi and try to include it in the template with
</span><tt>&nbsp;&lt;!--#include virtual=&quot;/maintenance.ssi&quot; --&gt;</tt><br>
<br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">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</span><br>
<br>
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">-- <br>
Jens Witzel<br>
Zentrale Informatik<br>
Universität Zürich<br>
Stampfenbachstrasse 73<br>
CH-8006 Zürich<br>
<br>
mail: &nbsp;<a href="mailto:jens.witzel@uzh.ch">jens.witzel@uzh.ch</a><br>
phone: +41 44 63 56777<br>
<a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.zi.uzh.ch%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccafc9bea74bd473dcc3808d90416e633%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637545318663811055%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=6yVFodIFiymxYpKDdOcHK729ElggIhrWkKFICxj8U%2BY%3D&amp;reserved=0" originalSrc="http://www.zi.uzh.ch/" shash="ljwpq8H6w2ESeekZC4yh3wsZV6y1ySZQfUZsNw2Oa2Qu4X3CQYo+ZJLJUqklw7AMVzpNb/g6U/gFRqbiZj8Pns1d5y2yT9VoegwnLhbU9FnEao+mANT8HAVr0OP+1/TbG+ryLxEZCrIakNZZPdahJpkKpVW/yzHGwUUqHw+rPcs=">http://www.zi.uzh.ch</a></span><o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>