[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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,


Dr. Martin Br?ndle
Zentrale Informatik
Universit?t Z?rich
Stampfenbachstr. 73
CH-8006 Z?rich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20170118/eaa75faf/attachment.html