<div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Hey there,<br></div>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. <br></div>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. <br></div>Do you have any more ideas why this could happen and how to avoid it?<br><br></div>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.<br><br></div>Thany you again for your help,<br></div>best regards<br><br></div>Thorsten Buelo<br></div>University of Cologne<br></div>Institut fuer Informatik<br></div><a href="http://www.informatik.uni-koeln.de">www.informatik.uni-koeln.de</a><br><div><div><div><div><div><div><div><div><div><div><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Wed, 18 Jan 2017 17:02:34 +0100<br>
From: Thorsten B?lo <<a href="mailto:thorsten.buelo@gmail.com">thorsten.buelo@gmail.com</a>><br>
Subject: Re: [EP-tech] Antwort: technical question: one archive with<br>
two 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:CABvrU_81MN%2BCcGbdBYBXe5_AC71Pab0bRMPabRHU90O6hxgtnw@mail.gmail.com">CABvrU_81MN+CcGbdBYBXe5_<wbr>AC71Pab0bRMPabRHU90O6hxgtnw@<wbr>mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<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" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" target="_blank">www.informatik.uni-koeln.de</a><br>
<br>
><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>
> <OF46765916.67BC9E18-<wbr>ONC12580AC.00262D37-C12580AC.<br>
> <a href="mailto:0027C817@lotus.uzh.ch">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 href="http://www.informatik.uni-koeln.de" rel="noreferrer" target="_blank">www.informatik.uni-koeln.de</a> <<a href="http://www.informatik.uni-koeln.de" rel="noreferrer" target="_blank">http://www.informatik.uni-<wbr>koeln.de</a>><br>
><br>
><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" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.<wbr>uk/pipermail/eprints-tech/<wbr>attachments/20170118/be16a38c/<wbr>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" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.<wbr>uk/pipermail/eprints-tech/<wbr>attachments/20170119/ec760c8c/<wbr>attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 19 Jan 2017 07:39:03 +0000<br>
From: Ian Stuart <<a href="mailto:Ian.Stuart@ed.ac.uk">Ian.Stuart@ed.ac.uk</a>><br>
Subject: Re: [EP-tech] Antwort: technical question: one archive with<br>
two domains<br>
To: <<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>><br>
Message-ID: <<a href="mailto:5ad4346d-2275-a1e6-da2f-a5ce018d0d3b@ed.ac.uk">5ad4346d-2275-a1e6-da2f-<wbr>a5ce018d0d3b@ed.ac.uk</a>><br>
Content-Type: text/plain; charset="windows-1252"; format=flowed<br>
<br>
<br>
<br>
On 18/01/17 16:02, Thorsten B?lo wrote:<br>
> I tried to configure /cfg.d/<a href="http://10_core.pl" rel="noreferrer" target="_blank">10_core.pl</a> <<a href="http://10_core.pl" rel="noreferrer" target="_blank">http://10_core.pl</a>> manually and<br>
> 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 "browse" 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/" rel="noreferrer" 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 +0000<br>
From: Ian Stuart <<a href="mailto:Ian.Stuart@ed.ac.uk">Ian.Stuart@ed.ac.uk</a>><br>
Subject: Re: [EP-tech] Antwort: technical question: one archive with<br>
two domains<br>
To: <<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>><br>
Message-ID: <<a href="mailto:fd1220b6-8291-9c30-a399-ec8d88b2e379@ed.ac.uk">fd1220b6-8291-9c30-a399-<wbr>ec8d88b2e379@ed.ac.uk</a>><br>
Content-Type: text/plain; charset="windows-1252"; format=flowed<br>
<br>
<br>
<br>
On 19/01/17 07:39, Ian Stuart wrote:<br>
><br>
><br>
> On 18/01/17 16:02, Thorsten B?lo wrote:<br>
>> I tried to configure /cfg.d/<a href="http://10_core.pl" rel="noreferrer" target="_blank">10_core.pl</a> <<a href="http://10_core.pl" rel="noreferrer" target="_blank">http://10_core.pl</a>> manually and<br>
>> 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 "browse" pages periodically: because the ingest<br>
> process doesn't always get it right....)#<br>
><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/" rel="noreferrer" 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>
______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.<wbr>uk/mailman/listinfo/eprints-<wbr>tech</a><br>
<br>
<br>
End of Eprints-tech Digest, Vol 100, Issue 13<br>
******************************<wbr>***************<br>
</blockquote></div><br></div></div></div></div></div></div></div></div></div></div></div></div></div>