EPrints Technical Mailing List Archive
Message: #06334
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] technical question: one archive with two domains
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] technical question: one archive with two domains
- From: Thorsten Bülo <thorsten.buelo@gmail.com>
- Date: Thu, 9 Mar 2017 13:09:40 +0100
Hey there,
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. ------------------------------------------------------------ ----------
Message: 1
Date: Wed, 18 Jan 2017 17:02:34 +0100
From: Thorsten B?lo <thorsten.buelo@gmail.com>
Subject: Re: [EP-tech] Antwort: technical question: one archive with
two domains
To: eprints-tech@ecs.soton.ac.uk
Message-ID:
<CABvrU_81MN+CcGbdBYBXe5_AC71Pab0bRMPabRHU90O6hxgtnw@ >mail.gmail.com
Content-Type: text/plain; charset="utf-8"
Hey,
thank you very much for your answers.
I tried to configure a test repository like you suggested.
I tried to configure /cfg.d/10_core.pl 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 10_core.pl does not affect my repo in any
way. Reloading or regenerating with epadmin does not help.
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.
Do you have any ideas of what I could have done wrong?
Using apaches mod_substitute is still an option, but I think that there
should be a better solution.
Thank you very much,
best regards
Thorsten Buelo
University of Cologne
Institut fuer Informatik
www.informatik.uni-koeln.de
>
> Message: 1
> Date: Wed, 18 Jan 2017 08:14:31 +0100
> From: martin.braendle@id.uzh.ch
> Subject: [EP-tech] Antwort: technical question: one archive with two
> domains
> To: eprints-tech@ecs.soton.ac.uk
> Message-ID:
> <OF46765916.67BC9E18-ONC12580AC.00262D37-C12580AC.
> 0027C817@lotus.uzh.ch>
>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> Hi,
>
> it is no problem to configure several domains for the same archive:
>
> in archives/{yourrepo}/cfg/cfg.d/10_core.pl :
>
> $c->{host} = 'domain1';
> $c->{aliases} = [ 'domain2', 'domain3', ...]
>
>
> in cfg/apache/yourrepo.conf
>
> <VirtualHost *:80>
> ServerName domain1
> ServerAlias domain2
> ServerAlias domain3
> .
> .
>
>
> In archives/{yourrepo}/ssl/securevhost.conf
>
> <VirtualHost *:443>
> ServerName domain1
> ServerAlias domain2
> ServerAlias domain3
> .
> .
> .
>
>
> Of course, all the domains must be registered as Aliases in the DNS. And
> the SSL certificates must contain all the domains.
>
> Our observation ist that usually the domain the user starts with is used
> during the visit of the repo website. Only during login, the URL switches
> to the main domain.
> We have no problem with that change.
>
> Best regards,
>
> Martin
>
>
> --
> Dr. Martin Br?ndle
> Zentrale Informatik
> Universit?t Z?rich
> Stampfenbachstr. 73
> CH-8006 Z?rich
> -
>
> On 17/01/2017 12:01, Thorsten B?lo wrote:
> > Hey there,
> > I have a problem with our running eprints archive:
> > It is necessary to access the same archive using two different
> > domains, so I configured two apache.conf include files with different
> > domains using the same 'PerlSetVar EPrints_ArchiveID'. This works fine
> > - both domains point to the same archive - but the html files
> > generated by eprints include hardlinks to the first domain. Is there
> > any option to make eprints using links to relative URLs? Or is there
> > another way
> > to solve my problem?
> > It would be great if you had some suggestions.
> >
> > Thank you very much,
> >
> > Thorsten Buelo
> >
> > University of Cologne
> > Institut f?r Informatik
> > www.informatik.uni-koeln.de <http://www.informatik.uni-koeln.de >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/ attachments/20170118/be16a38c/ attachment-0001.html
------------------------------
Message: 2
...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/ attachments/20170119/ec760c8c/ attachment-0001.html
------------------------------
Message: 3
Date: Thu, 19 Jan 2017 07:39:03 +0000
From: Ian Stuart <Ian.Stuart@ed.ac.uk>
Subject: Re: [EP-tech] Antwort: technical question: one archive with
two domains
To: <eprints-tech@ecs.soton.ac.uk>
Message-ID: <5ad4346d-2275-a1e6-da2f-a5ce018d0d3b@ed.ac.uk">5ad4346d-2275-a1e6-da2f-a5ce018d0d3b@ed.ac.uk>
Content-Type: text/plain; charset="windows-1252"; format=flowed
On 18/01/17 16:02, Thorsten B?lo wrote:
> I tried to configure /cfg.d/10_core.pl <http://10_core.pl> manually and
> added a ServerAlias at the apache config files.
Did you run all the generate_xxxx scripts having changed 10_core?
(Remember that EPrints works by pre-creating snippits of web pages,
which it then inserts into the templates - it's why you need to
re-generate all the "browse" pages periodically: because the ingest
process doesn't always get it right....)#
--
Ian Stuart.
Bibliographics and Multimedia Service Delivery team,
EDINA,
The University of Edinburgh.
http://edina.ac.uk/
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
------------------------------
Message: 4
Date: Thu, 19 Jan 2017 07:45:59 +0000
From: Ian Stuart <Ian.Stuart@ed.ac.uk>
Subject: Re: [EP-tech] Antwort: technical question: one archive with
two domains
To: <eprints-tech@ecs.soton.ac.uk>
Message-ID: <fd1220b6-8291-9c30-a399-ec8d88b2e379@ed.ac.uk">fd1220b6-8291-9c30-a399-ec8d88b2e379@ed.ac.uk>
Content-Type: text/plain; charset="windows-1252"; format=flowed
On 19/01/17 07:39, Ian Stuart wrote:
>
>
> On 18/01/17 16:02, Thorsten B?lo wrote:
>> I tried to configure /cfg.d/10_core.pl <http://10_core.pl> manually and
>> added a ServerAlias at the apache config files.
>
> Did you run all the generate_xxxx scripts having changed 10_core?
>
> (Remember that EPrints works by pre-creating snippits of web pages,
> which it then inserts into the templates - it's why you need to
> re-generate all the "browse" pages periodically: because the ingest
> process doesn't always get it right....)#
>
.... and you restarted the server, having changed the config, yes?
--
Ian Stuart.
Bibliographics and Multimedia Service Delivery team,
EDINA,
The University of Edinburgh.
http://edina.ac.uk/
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
------------------------------
_______________________________________________
Eprints-tech mailing list
Eprints-tech@ecs.soton.ac.uk
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints- tech
End of Eprints-tech Digest, Vol 100, Issue 13
*********************************************
- Prev by Date: Re: [EP-tech] Thumbnail for latest_tool
- Next by Date: Re: [EP-tech] technical question: one archive with two domains
- Previous by thread: [EP-tech] Antwort: technical question: one archive with two domains
- Next by thread: Re: [EP-tech] technical question: one archive with two domains
- Index(es):