<div dir="ltr"><br><div class="gmail_extra"><div><div><div>Hey,<br></div>thank you very much for your answers. <br></div>I tried to configure a test repository like you suggested. <br></div>I
tried to configure /cfg.d/<a href="http://10_core.pl">10_core.pl</a> manually and added a
ServerAlias at the apache config files. This didn't work, so i used
epadmin config-core to add a second url. I tried to use a second virtual
host in the apache config instead of ServerAlias, too. But my problem still remains: if i access the repo using the new domain, i reach it, but it is equivalent to a redirect. All links are hardlinks, if i use one of them, i get redirected to the old domain. It seems that changing <a href="http://10_core.pl">10_core.pl</a> does not affect my repo in any way. Reloading or regenerating with epadmin does not help. <br></div><div class="gmail_extra">So i tried to set up a new test repo with 'epadmin create' and defined a second url in this process, setting redirecting to 'no'. The result still remains the same - i can access it with both domains, but all links point to the main domain. <br></div><div class="gmail_extra">Do you have any ideas of what I could have done wrong? <br></div><div class="gmail_extra">Using apaches mod_substitute is still an option, but I think that there should be a better solution.<br></div><div class="gmail_extra">Thank you very much, <br></div><div class="gmail_extra">best regards<br><br></div><div class="gmail_extra">Thorsten Buelo<br><br></div><div class="gmail_extra">University of Cologne<br></div><div class="gmail_extra">Institut fuer Informatik<br></div><div class="gmail_extra"><a href="http://www.informatik.uni-koeln.de">www.informatik.uni-koeln.de</a><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Message: 1<br>
Date: Wed, 18 Jan 2017 08:14:31 +0100<br>
From: <a href="mailto:martin.braendle@id.uzh.ch">martin.braendle@id.uzh.ch</a><br>
Subject: [EP-tech] Antwort: technical question: one archive with two<br>
domains<br>
To: <a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a><br>
Message-ID:<br>
<<a href="mailto:OF46765916.67BC9E18-ONC12580AC.00262D37-C12580AC.0027C817@lotus.uzh.ch">OF46765916.67BC9E18-<wbr>ONC12580AC.00262D37-C12580AC.<wbr>0027C817@lotus.uzh.ch</a>><br>
<br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
<br>
Hi,<br>
<br>
it is no problem to configure several domains for the same archive:<br>
<br>
in archives/{yourrepo}/cfg/cfg.d/<a href="http://10_core.pl" rel="noreferrer" target="_blank"><wbr>10_core.pl</a> :<br>
<br>
$c->{host} = 'domain1';<br>
$c->{aliases} = [ 'domain2', 'domain3', ...]<br>
<br>
<br>
in cfg/apache/yourrepo.conf<br>
<br>
<VirtualHost *:80><br>
ServerName domain1<br>
ServerAlias domain2<br>
ServerAlias domain3<br>
.<br>
.<br>
<br>
<br>
In archives/{yourrepo}/ssl/<wbr>securevhost.conf<br>
<br>
<VirtualHost *:443><br>
ServerName domain1<br>
ServerAlias domain2<br>
ServerAlias domain3<br>
.<br>
.<br>
.<br>
<br>
<br>
Of course, all the domains must be registered as Aliases in the DNS. And<br>
the SSL certificates must contain all the domains.<br>
<br>
Our observation ist that usually the domain the user starts with is used<br>
during the visit of the repo website. Only during login, the URL switches<br>
to the main domain.<br>
We have no problem with that change.<br>
<br>
Best regards,<br>
<br>
Martin<br>
<br>
<br>
--<br>
Dr. Martin Br?ndle<br>
Zentrale Informatik<br>
Universit?t Z?rich<br>
Stampfenbachstr. 73<br>
CH-8006 Z?rich<br>
-<br>
<br>On 17/01/2017 12:01, Thorsten B?lo wrote:<br>
> Hey there,<br>
> I have a problem with our running eprints archive:<br>
> It is necessary to access the same archive using two different<br>
> domains, so I configured two apache.conf include files with different<br>
> domains using the same 'PerlSetVar EPrints_ArchiveID'. This works fine<br>
> - both domains point to the same archive - but the html files<br>
> generated by eprints include hardlinks to the first domain. Is there<br>
> any option to make eprints using links to relative URLs? Or is there<br>
> another way<br>
> to solve my problem?<br>
> It would be great if you had some suggestions.<br>
><br>
> Thank you very much,<br>
><br>
> Thorsten Buelo<br>
><br>
> University of Cologne<br>
> Institut f?r Informatik<br>
> <a target="_blank" rel="noreferrer" href="http://www.informatik.uni-koeln.de">www.informatik.uni-koeln.de</a> <<a target="_blank" rel="noreferrer" href="http://www.informatik.uni-koeln.de">http://www.informatik.uni-<wbr>koeln.de</a>><br>
<br></blockquote></div></div></div>