<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">What John said, but if you want to be walked through, I've actually done a training video on just this recently:<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><a href="http://wiki.eprints.org/w/index.php/Training_Video:Setting_up_SSL">http://wiki.eprints.org/w/index.php/Training_Video:Setting_up_SSL</a></div><div><br></div><div>I only set up one repository, but I do it in the way that is scalable.</div><div><br><div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>--<br>Adam Field<br>Business Relationship Manager and Community Lead<br>EPrints Services</div><div><br></div></div></div><br class="Apple-interchange-newline">
</div>
<br><div><div>On 10 Dec 2015, at 14:44, John Salter &lt;<a href="mailto:J.Salter@leeds.ac.uk">J.Salter@leeds.ac.uk</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 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;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#44546A;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#44546A;}
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:70.85pt 70.85pt 2.0cm 70.85pt;}
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]-->

<div lang="EN-GB" link="blue" vlink="purple">
<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">Hi,<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">&gt;
</span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">need a virtual host for each https<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">I think this is the right solution – the details below aren’t tested – but I hope are enough to get you started to a fix!<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">The content in each ~/cfg/apache_ssl/ARCHIVEID.conf:<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">#####################<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp; &lt;Location ""&gt;<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp;&nbsp;&nbsp; PerlSetVar EPrints_ArchiveID ARCHIVEID<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp;&nbsp;&nbsp; PerlSetVar EPrints_Secure yes<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp;&nbsp;&nbsp; Options +ExecCGI<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp;&nbsp;&nbsp; Order allow,deny<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp;&nbsp;&nbsp; Allow from all<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp; &lt;/Location&gt;<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">#####################<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">needs to go into a seperate vhost block with the appropriate ServerName (and with all the necessary SSL bits completed too - … below):<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">#####################<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&lt;VirtualHost *:443&gt;<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">ServerName …<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">ServerAdmin …<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">SSLEngine on<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">SSLCertificateFile …<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">SSLCertificateKeyFile …<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">SSLCertificateChainFile …<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">SSLProtocol …<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">#may be in /opt/eprints instead?<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">Include /usr/share/eprints/cfg/apache_ssl/ARCHIVEID.conf<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">PerlTransHandler +EPrints::Apache::Rewrite<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&lt;/VirtualHost&gt;<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">#####################<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">&nbsp;</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">&nbsp;</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">&nbsp;</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"> <a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a> [<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">mailto:eprints-tech-bounces@ecs.soton.ac.uk</a>]
<b>On Behalf Of </b>Sebastian Schick<br>
<b>Sent:</b> 10 December 2015 14:10<br>
<b>To:</b> <a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a><br>
<b>Subject:</b> [EP-tech] Re: problem with multiple archives from<o:p></o:p></span></p>
</div>
</div><p class="MsoNormal"><o:p>&nbsp;</o:p></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">Hi,<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">we still have problems running our archives with https.<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">Maybe we now have a more detailed understanding of the problem. I will try to describe the situation below.
<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">As long as no user is logged in at a https enabled archive, everything is ok.
<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">It is only possible to log on&nbsp; to the first https archive ({host} = 'eprints.localhost';) but not to the second https archive ({host} = 'eprints.dbis.localhost';
 ).<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">In the latter case we get an authentication error (user not known).<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">If someone is logged onto the first https archive, for all other archives the links become wrong.<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">In this case the links will be set to the host of the first https archive, with the exception of the “create account” button.
<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">If the user is logged out, links are generated correctly.<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">We assume that this is a problem with the virtual host configuration of the apache.<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">Maybe we also need a virtual host for each https enabled archive instead of a general virtual host definition with locations?<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">Do you have any other hints?<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">Sebastian<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp;</span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif">Von:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif">
</span><a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif">eprints-tech-bounces@ecs.soton.ac.uk</span></a><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif">
 [</span><a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif">mailto:eprints-tech-bounces</span><span lang="DE" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif">@ecs.soton.ac.uk</span></a><span lang="DE" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif">]
<b>Im Auftrag von </b>Sebastian Schick<br>
<b>Gesendet:</b> Dienstag, 24. November 2015 21:07<br>
<b>An:</b> </span><a href="mailto:eprints-tech@ecs.soton.ac.uk"><span lang="DE" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif">eprints-tech@ecs.soton.ac.uk</span></a><span lang="DE" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif"><br>
<b>Betreff:</b> [EP-tech] Re: problem with multiple archives from<o:p></o:p></span></p>
</div>
</div><p class="MsoNormal"><span lang="DE">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">we were able to run one archive with https and two other archives with http!
<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">If we try to run three archives with https we run into the same problems as described before.
<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">We also tried to run two archives with https and the third with http. In this case only the links for the second archive
 with https are generated wrong. <o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Does anyone have a running configuration for more than 2 archive using https?<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Here is our configuration for two archives.
<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">First archive:<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"># This file was created by bin/epadmin<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"># You can regenerate this file by doing ./bin/epadmin config_core ifi<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">$c-&gt;{host} = 'eprints.localhost';<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">$c-&gt;{port} = 80;<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">$c-&gt;{aliases} = [];<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">$c-&gt;{securehost} = 'eprints.localhost';<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">$c-&gt;{secureport} = 443;<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">$c-&gt;{http_root} = undef;<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Second archive:<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"># This file was created by bin/epadmin<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"># You can regenerate this file by doing ./bin/epadmin config_core dbis<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">$c-&gt;{host} = 'eprints.dbis.localhost';<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">$c-&gt;{port} = 80;<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">$c-&gt;{aliases} = [];<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">$c-&gt;{securehost} = 'eprints.dbis.localhost';<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">$c-&gt;{secureport} = 443;<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">$c-&gt;{http_root} = undef;<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Do you have any other hints?<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&nbsp;</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Sebastian<o:p></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="DE" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">Von:</span></b><span lang="DE" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">
</span><a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"><span lang="DE" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">eprints-tech-bounces@ecs.soton.ac.uk</span></a><span lang="DE" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">
 [</span><a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"><span lang="DE" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">mailto:eprints-tech-bounces@ecs.soton.ac.uk</span></a><span lang="DE" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">]
<b>Im Auftrag von </b>Adam Field<br>
<b>Gesendet:</b> Montag, 2. </span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">November 2015 16:41<br>
<b>An:</b> </span><a href="mailto:eprints-tech@ecs.soton.ac.uk"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">eprints-tech@ecs.soton.ac.uk</span></a><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"><br>
<b>Betreff:</b> [EP-tech] Re: problem with multiple archives from<o:p></o:p></span></p>
</div>
</div><p class="MsoNormal"><span lang="EN-US">&nbsp;</span></p>
<div><p class="MsoNormal"><span lang="EN-US">Is there a pattern in which links go to the wrong site (e.g. https ones don't work?).<o:p></o:p></span></p>
</div><p class="MsoNormal"><span lang="EN-US">&nbsp;</span></p>
<div>
<div>
<div>
<div><p class="MsoNormal"><span lang="EN-US" style="">--<br>
Adam Field<br>
Business Relationship Manager and Community Lead<br>
EPrints Services<o:p></o:p></span></p>
</div>
<div><p class="MsoNormal"><span lang="EN-US" style="">&nbsp;</span></p>
</div>
</div>
</div><p class="MsoNormal"><span lang="EN-US">&nbsp;</span></p>
</div><p class="MsoNormal"><span lang="EN-US">&nbsp;</span></p>
<div>
<div><p class="MsoNormal"><span lang="EN-US">On 2 Nov 2015, at 15:32, Sebastian Schick &lt;</span><a href="mailto:sebastian.schick@uni-rostock.de"><span lang="EN-US">sebastian.schick@uni-rostock.de</span></a><span lang="EN-US">&gt; wrote:<o:p></o:p></span></p>
</div><p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">&nbsp;</span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">Yes, the first archive is running https. The second not yet.</span><span lang="EN-US"><o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A"><br>
Sebastian</span><span lang="EN-US"><o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#44546A">&nbsp;</span><span lang="EN-US"><o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif">Von:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif">
</span><a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif">eprints-tech-bounces@ecs.soton.ac.uk</span></a><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif">
 [</span><a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif">mailto:eprints-tech-bounces@ecs.soton.ac.uk</span></a><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif">]
<b>Im Auftrag von </b>Adam Field<br>
<b>Gesendet:</b> Montag, 2. November 2015 15:53<br>
<b>An:</b> </span><a href="mailto:eprints-tech@ecs.soton.ac.uk"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif">eprints-tech@ecs.soton.ac.uk</span></a><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif"><br>
<b>Betreff:</b> [EP-tech] Re: problem with multiple archives from</span><span lang="EN-US"><o:p></o:p></span></p>
</div>
</div><p class="MsoNormal"><span lang="EN-US">&nbsp;<o:p></o:p></span></p>
<div><p class="MsoNormal"><span lang="EN-US">Are you running https?<o:p></o:p></span></p>
</div>
<div><p class="MsoNormal"><span lang="EN-US">&nbsp;<o:p></o:p></span></p>
</div><p class="MsoNormal"><span lang="EN-US">&nbsp;<o:p></o:p></span></p>
<div>
<div>
<div><p class="MsoNormal"><span lang="EN-US">--<br>
Adam Field<br>
Business Relationship Manager and Community Lead<br>
EPrints Services<o:p></o:p></span></p>
</div>
<div><p class="MsoNormal"><span lang="EN-US">&nbsp;<o:p></o:p></span></p>
</div>
</div><p class="MsoNormal"><span lang="EN-US">&nbsp;<o:p></o:p></span></p>
</div><p class="MsoNormal"><span lang="EN-US">&nbsp;<o:p></o:p></span></p>
<div>
<div><p class="MsoNormal"><span lang="EN-US">On 30 Oct 2015, at 15:15, John Salter &lt;</span><a href="mailto:J.Salter@leeds.ac.uk"><span lang="EN-US">J.Salter@leeds.ac.uk</span></a><span lang="EN-US">&gt; wrote:<o:p></o:p></span></p>
</div><p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">&nbsp;</span></p><p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">That all looks OK (I'm guessing 'loclhost' in the second one is a typo?)<br>
<br>
Have you got any other config files that define 'base_url' or similar in:<br>
~/archives/&lt;dbis&gt;/cfg/cfg.d/<br>
~/archives/ &lt;inf&gt;/cfg/cfg.d/<br>
~/lib/cfg.d/<br>
~/lib/syscfg.d/<br>
~/cfg/cfg.d/<br>
<br>
The http paths configured in here: <br>
</span><a href="https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Repository.pm#L504"><span lang="EN-US">https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Repository.pm#L504</span></a><span lang="EN-US"><br>
Which in turn calls _add_http_paths:<br>
</span><a href="https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Repository.pm#L715-L774"><span lang="EN-US">https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Repository.pm#L715-L774</span></a><span lang="EN-US"><br>
and _add_live_http_paths:<br>
</span><a href="https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Repository.pm#L288-L300"><span lang="EN-US">https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Repository.pm#L288-L300</span></a><span lang="EN-US"><br>
<br>
- but these can be overridden in config files.<br>
<br>
If none of that helps, if you look at the source-code for a page, are the links relative, or absolute?<br>
Do you have a &lt;base...&gt; element in your template?<br>
<br>
Cheers,<br>
John<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: </span><a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"><span lang="EN-US">eprints-tech-bounces@ecs.soton.ac.uk</span></a><span lang="EN-US"> [</span><a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"><span lang="EN-US">mailto:eprints-tech-bounces@ecs.soton.ac.uk</span></a><span lang="EN-US">]
 On Behalf Of Sebastian Schick<br>
Sent: 30 October 2015 14:41<br>
To: </span><a href="mailto:eprints-tech@ecs.soton.ac.uk"><span lang="EN-US">eprints-tech@ecs.soton.ac.uk</span></a><span lang="EN-US"><br>
Subject: [EP-tech] Re: problem with multiple archives from<br>
<br>
Hi Thomas,<br>
<br>
the content of &lt;EprintsPath&gt;/archives/&lt;dbis&gt;/cfg/cfg.d/10_core.pl is<br>
$c-&gt;{host} = 'dbis.localhost';<br>
$c-&gt;{port} = 80;<br>
$c-&gt;{aliases} = [];<br>
$c-&gt;{securehost} = '';<br>
$c-&gt;{secureport} = 443;<br>
$c-&gt;{http_root} = undef;<br>
<br>
the content of &lt;EprintsPath&gt;/archives/&lt;inf&gt;/cfg/cfg.d/10_core.pl is<br>
<br>
$c-&gt;{host} = 'inf.loclhost';<br>
$c-&gt;{port} = 80;<br>
$c-&gt;{aliases} = [];<br>
$c-&gt;{securehost} = '';<br>
$c-&gt;{secureport} = 443;<br>
$c-&gt;{http_root} = undef;<br>
<br>
<br>
<br>
Is there something missing in the second conf file?<br>
<br>
Sebastian<br>
<br>
<br>
On 30.10.2015 14:52, Thomas Lauke wrote:<o:p></o:p></span></p><p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">Hi Sebastian,<br>
<br>
<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US">Why does eprints generate wrong links on the web pages?<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US">imho the definition in &lt;EprintsPath&gt;/archives/&lt;repoID&gt;/cfg/cfg.d/10_core.pl is relevant during bin/generate_static ...<br>
<br>
Hth<br>
Thomas<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US"><br>
<br>
<br>
*** Options: </span><a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech"><span lang="EN-US">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</span></a><span lang="EN-US"><br>
*** Archive: </span><a href="http://www.eprints.org/tech.php/"><span lang="EN-US">http://www.eprints.org/tech.php/</span></a><span lang="EN-US"><br>
*** EPrints community wiki: </span><a href="http://wiki.eprints.org/"><span lang="EN-US">http://wiki.eprints.org/</span></a><span lang="EN-US"><br>
*** EPrints developers Forum: </span><a href="http://forum.eprints.org/"><span lang="EN-US">http://forum.eprints.org/</span></a><span lang="EN-US"><o:p></o:p></span></p>
</div><p class="MsoNormal"><span lang="EN-US">&nbsp;<o:p></o:p></span></p>
</div><p class="MsoNormal"><span lang="EN-US">*** Options: </span><a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech"><span lang="EN-US">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</span></a><span lang="EN-US"><br>
*** Archive: </span><a href="http://www.eprints.org/tech.php/"><span lang="EN-US">http://www.eprints.org/tech.php/</span></a><span lang="EN-US"><br>
*** EPrints community wiki: </span><a href="http://wiki.eprints.org/"><span lang="EN-US">http://wiki.eprints.org/</span></a><span lang="EN-US"><br>
*** EPrints developers Forum: </span><a href="http://forum.eprints.org/"><span lang="EN-US">http://forum.eprints.org/</span></a><span lang="EN-US"><o:p></o:p></span></p>
</blockquote>
</div><p class="MsoNormal"><span lang="EN-US">&nbsp;</span></p>
</div>
</div>

*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>*** Archive: <a href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a><br>*** EPrints community wiki: <a href="http://wiki.eprints.org/">http://wiki.eprints.org/</a><br>*** EPrints developers Forum: <a href="http://forum.eprints.org/">http://forum.eprints.org/</a><br></blockquote></div><br></div></body></html>