<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=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;}
/* 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-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@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 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">This might be a really bad idea (but it might be genius)…<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">Could you output a &lt;base href=&quot;…&quot;/&gt; tag (using the dynamic template system), *<b>and</b>* make sure all links are relative?<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>
<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>Thorsten Bülo<br>
<b>Sent:</b> 09 March 2017 12:10<br>
<b>To:</b> eprints-tech@ecs.soton.ac.uk<br>
<b>Subject:</b> [EP-tech] technical question: one archive with two domains<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Hey there,<o:p></o:p></p>
</div>
<p class="MsoNormal">I'm still trying to configure my eprints archive to work with two domains. I tried all your suggestions (except mod_substitute) in different ways, but it still don't work.
<o:p></o:p></p>
</div>
<p class="MsoNormal">My goal: I want to access one archive using two different domains. So I modified the apache-includes to add a ServerAlias, this part works fine: domain1 and domain2 show the exact same website. My problem: It is the EXACT same website,
 so all links are the same, too. So if i use one of the links on domain2, I go to domain1 and do not remain on domain2.
<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Do you have any more ideas why this could happen and how to avoid it?<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">On my way finding a solution, I tried to modify the html-snippets used to build the website - this worked for some parts, but changing other parts killed the whole site. My idea was to change all links manually
 (if it was working, i would automate this with a little script). Do anybody know the part/script of eprints which combines the html snippets? I hope that reading this script might help me to modify my repo.<o:p></o:p></p>
</div>
<p class="MsoNormal">Thany you again for your help,<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">best regards<o:p></o:p></p>
</div>
<p class="MsoNormal">Thorsten Buelo<o:p></o:p></p>
</div>
<p class="MsoNormal">University of Cologne<o:p></o:p></p>
</div>
<p class="MsoNormal">Institut fuer Informatik<o:p></o:p></p>
</div>
<p class="MsoNormal"><a href="http://www.informatik.uni-koeln.de">www.informatik.uni-koeln.de</a><o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 18 Jan 2017 17:02:34 &#43;0100<br>
From: Thorsten B?lo &lt;<a href="mailto:thorsten.buelo@gmail.com">thorsten.buelo@gmail.com</a>&gt;<br>
Subject: Re: [EP-tech] Antwort: technical question: one archive with<br>
&nbsp; &nbsp; &nbsp; &nbsp; two&nbsp; &nbsp; &nbsp;domains<br>
To: <a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a><br>
Message-ID:<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:CABvrU_81MN%2BCcGbdBYBXe5_AC71Pab0bRMPabRHU90O6hxgtnw@mail.gmail.com">CABvrU_81MN&#43;CcGbdBYBXe5_AC71Pab0bRMPabRHU90O6hxgtnw@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
Hey,<br>
thank you very much for your answers.<br>
I tried to configure a test repository like you suggested.<br>
I tried to configure /cfg.d/<a href="http://10_core.pl" target="_blank">10_core.pl</a> manually and added a ServerAlias at<br>
the apache config files. This didn't work, so i used epadmin config-core to<br>
add a second url. I tried to use a second virtual host in the apache config<br>
instead of ServerAlias, too. But my problem still remains: if i access the<br>
repo using the new domain, i reach it, but it is equivalent to a redirect.<br>
All links are hardlinks, if i use one of them, i get redirected to the old<br>
domain. It seems that changing <a href="http://10_core.pl" target="_blank">10_core.pl</a> does not affect my repo in any<br>
way. Reloading or regenerating with epadmin does not help.<br>
So i tried to set up a new test repo with 'epadmin create' and defined a<br>
second url in this process, setting redirecting to 'no'. The result still<br>
remains the same - i can access it with both domains, but all links point<br>
to the main domain.<br>
Do you have any ideas of what I could have done wrong?<br>
Using apaches mod_substitute is still an option, but I think that there<br>
should be a better solution.<br>
Thank you very much,<br>
best regards<br>
<br>
Thorsten Buelo<br>
<br>
University of Cologne<br>
Institut fuer Informatik<br>
<a href="http://www.informatik.uni-koeln.de" target="_blank">www.informatik.uni-koeln.de</a><br>
<br>
&gt;<br>
&gt; Message: 1<br>
&gt; Date: Wed, 18 Jan 2017 08:14:31 &#43;0100<br>
&gt; From: <a href="mailto:martin.braendle@id.uzh.ch">martin.braendle@id.uzh.ch</a><br>
&gt; Subject: [EP-tech] Antwort: technical question: one archive with two<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;domains<br>
&gt; To: <a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a><br>
&gt; Message-ID:<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;OF46765916.67BC9E18-ONC12580AC.00262D37-C12580AC.<br>
&gt; <a href="mailto:0027C817@lotus.uzh.ch">0027C817@lotus.uzh.ch</a>&gt;<br>
&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; it is no problem to configure several domains for the same archive:<br>
&gt;<br>
&gt; in&nbsp; archives/{yourrepo}/cfg/cfg.d/<a href="http://10_core.pl" target="_blank">10_core.pl</a>&nbsp; :<br>
&gt;<br>
&gt; $c-&gt;{host} = 'domain1';<br>
&gt; $c-&gt;{aliases} = [ 'domain2', 'domain3', ...]<br>
&gt;<br>
&gt;<br>
&gt; in cfg/apache/yourrepo.conf<br>
&gt;<br>
&gt; &lt;VirtualHost *:80&gt;<br>
&gt; ServerName domain1<br>
&gt; ServerAlias domain2<br>
&gt; ServerAlias domain3<br>
&gt; .<br>
&gt; .<br>
&gt;<br>
&gt;<br>
&gt; In archives/{yourrepo}/ssl/securevhost.conf<br>
&gt;<br>
&gt; &lt;VirtualHost *:443&gt;<br>
&gt; ServerName domain1<br>
&gt; ServerAlias domain2<br>
&gt; ServerAlias domain3<br>
&gt; .<br>
&gt; .<br>
&gt; .<br>
&gt;<br>
&gt;<br>
&gt; Of course, all the domains must be registered as Aliases in the DNS. And<br>
&gt; the SSL certificates must contain all the domains.<br>
&gt;<br>
&gt; Our observation ist that usually the domain the user starts with is used<br>
&gt; during the visit of the repo website. Only during login, the URL switches<br>
&gt; to the main domain.<br>
&gt; We have no problem with that change.<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; Martin<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Dr. Martin Br?ndle<br>
&gt; Zentrale Informatik<br>
&gt; Universit?t Z?rich<br>
&gt; Stampfenbachstr. 73<br>
&gt; CH-8006 Z?rich<br>
&gt; -<br>
&gt;<br>
&gt; On 17/01/2017 12:01, Thorsten B?lo wrote:<br>
&gt; &gt; Hey there,<br>
&gt; &gt; I have a problem with our running eprints archive:<br>
&gt; &gt; It is necessary to access the same archive using two different<br>
&gt; &gt; domains, so I configured two apache.conf include files with different<br>
&gt; &gt; domains using the same 'PerlSetVar EPrints_ArchiveID'. This works fine<br>
&gt; &gt; - both domains point to the same archive - but the html files<br>
&gt; &gt; generated by eprints include hardlinks to the first domain. Is there<br>
&gt; &gt; any option to make eprints using links to relative URLs? Or is there<br>
&gt; &gt; another way<br>
&gt; &gt; to solve my problem?<br>
&gt; &gt; It would be great if you had some suggestions.<br>
&gt; &gt;<br>
&gt; &gt; Thank you very much,<br>
&gt; &gt;<br>
&gt; &gt; Thorsten Buelo<br>
&gt; &gt;<br>
&gt; &gt; University of Cologne<br>
&gt; &gt; Institut f?r Informatik<br>
&gt; &gt; <a href="http://www.informatik.uni-koeln.de" target="_blank">www.informatik.uni-koeln.de</a> &lt;<a href="http://www.informatik.uni-koeln.de" target="_blank">http://www.informatik.uni-koeln.de</a>&gt;<br>
&gt;<br>
&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20170118/be16a38c/attachment-0001.html" target="_blank">
http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20170118/be16a38c/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
...<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20170119/ec760c8c/attachment-0001.html" target="_blank">
http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20170119/ec760c8c/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 19 Jan 2017 07:39:03 &#43;0000<br>
From: Ian Stuart &lt;<a href="mailto:Ian.Stuart@ed.ac.uk">Ian.Stuart@ed.ac.uk</a>&gt;<br>
Subject: Re: [EP-tech] Antwort: technical question: one archive with<br>
&nbsp; &nbsp; &nbsp; &nbsp; two domains<br>
To: &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&gt;<br>
Message-ID: &lt;<a href="mailto:5ad4346d-2275-a1e6-da2f-a5ce018d0d3b@ed.ac.uk">5ad4346d-2275-a1e6-da2f-a5ce018d0d3b@ed.ac.uk</a>&gt;<br>
Content-Type: text/plain; charset=&quot;windows-1252&quot;; format=flowed<br>
<br>
<br>
<br>
On 18/01/17 16:02, Thorsten B?lo wrote:<br>
&gt; I tried to configure /cfg.d/<a href="http://10_core.pl" target="_blank">10_core.pl</a> &lt;<a href="http://10_core.pl" target="_blank">http://10_core.pl</a>&gt; manually and<br>
&gt; added a ServerAlias at the apache config files.<br>
<br>
Did you run all the generate_xxxx scripts having changed 10_core?<br>
<br>
(Remember that EPrints works by pre-creating snippits of web pages,<br>
which it then inserts into the templates - it's why you need to<br>
re-generate all the &quot;browse&quot; pages periodically: because the ingest<br>
process doesn't always get it right....)#<br>
<br>
--<br>
Ian Stuart.<br>
Bibliographics and Multimedia Service Delivery team,<br>
EDINA,<br>
The University of Edinburgh.<br>
<br>
<a href="http://edina.ac.uk/" target="_blank">http://edina.ac.uk/</a><br>
<br>
The University of Edinburgh is a charitable body, registered in<br>
Scotland, with registration number SC005336.<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Thu, 19 Jan 2017 07:45:59 &#43;0000<br>
From: Ian Stuart &lt;<a href="mailto:Ian.Stuart@ed.ac.uk">Ian.Stuart@ed.ac.uk</a>&gt;<br>
Subject: Re: [EP-tech] Antwort: technical question: one archive with<br>
&nbsp; &nbsp; &nbsp; &nbsp; two domains<br>
To: &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>&gt;<br>
Message-ID: &lt;<a href="mailto:fd1220b6-8291-9c30-a399-ec8d88b2e379@ed.ac.uk">fd1220b6-8291-9c30-a399-ec8d88b2e379@ed.ac.uk</a>&gt;<br>
Content-Type: text/plain; charset=&quot;windows-1252&quot;; format=flowed<br>
<br>
<br>
<br>
On 19/01/17 07:39, Ian Stuart wrote:<br>
&gt;<br>
&gt;<br>
&gt; On 18/01/17 16:02, Thorsten B?lo wrote:<br>
&gt;&gt; I tried to configure /cfg.d/<a href="http://10_core.pl" target="_blank">10_core.pl</a> &lt;<a href="http://10_core.pl" target="_blank">http://10_core.pl</a>&gt; manually and<br>
&gt;&gt; added a ServerAlias at the apache config files.<br>
&gt;<br>
&gt; Did you run all the generate_xxxx scripts having changed 10_core?<br>
&gt;<br>
&gt; (Remember that EPrints works by pre-creating snippits of web pages,<br>
&gt; which it then inserts into the templates - it's why you need to<br>
&gt; re-generate all the &quot;browse&quot; pages periodically: because the ingest<br>
&gt; process doesn't always get it right....)#<br>
&gt;<br>
.... and you restarted the server, having changed the config, yes?<br>
<br>
--<br>
Ian Stuart.<br>
Bibliographics and Multimedia Service Delivery team,<br>
EDINA,<br>
The University of Edinburgh.<br>
<br>
<a href="http://edina.ac.uk/" target="_blank">http://edina.ac.uk/</a><br>
<br>
The University of Edinburgh is a charitable body, registered in<br>
Scotland, with registration number SC005336.<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Eprints-tech mailing list<br>
<a href="mailto:Eprints-tech@ecs.soton.ac.uk">Eprints-tech@ecs.soton.ac.uk</a><br>
<a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
<br>
<br>
End of Eprints-tech Digest, Vol 100, Issue 13<br>
*********************************************<o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>