EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #06166


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Antwort: technical question: one archive with two domains


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