[EP-tech] Re: Deployment on two different hosts (http, https)

Jon Hallett Jon.Hallett at uwe.ac.uk
Mon Aug 20 09:08:27 BST 2012

Hi Moritz,

I think this is the same problem I was having.

Does anything in




look familiar?




Message: 1
Date: Mon, 13 Aug 2012 10:57:18 +0200
From: Moritz Schepp <schepp at ist.ac.at>
Subject: [EP-tech]  Deployment on two different hosts (http, https)
To: eprints-tech at ecs.soton.ac.uk
Message-ID: <5028C16E.5060201 at ist.ac.at>
Content-Type: text/plain; charset=UTF-8; format=flowed


I am trying to deploy eprints to (let's say) http://eprints.example.com and https://myhost.example.local/repository

Generally, it seems to work but the views generated are strictly for the HTTP configuration. When I open https://myhost.example.local/repository

Some (!) images don't show and some links are pointing to the eprints.example.com domain.

My VirtualHosts look like this:

<VirtualHost xxx.xxx.xxx.xxx:80>
   ServerName repository.example.com
   DocumentRoot /opt/eprints3/archives/repo1

   <Location />
     PerlSetVar EPrints_ArchiveID repo1

     Options +ExecCGI
     Order allow,deny
     Allow from all

   PerlTransHandler +EPrints::Apache::Rewrite </VirtualHost>


<VirtualHost yyy.yyy.yyy.yyy:443>
   ServerName myhost.example.local

   DocumentRoot /var/www/myhost # This I need for something else.

   SSLEngine on
   SSLCertificateFile /etc/ssl/certs/myhost.example.local.crt
   SSLCertificateKeyFile /etc/ssl/private/myhost.example.local.key

   <Location /repository>
     PerlSetVar EPrints_ArchiveID repo1
     PerlSetVar EPrints_Secure yes

     Options +ExecCGI
     Order allow,deny
     Allow from all

   PerlTransHandler +EPrints::Apache::Rewrite </VirtualHost>

How can I make this work? Am I forgetting something?

Any help is much appreciated,


Eprints-tech mailing list
Eprints-tech at ecs.soton.ac.uk

End of Eprints-tech Digest, Vol 47, Issue 8

More information about the Eprints-tech mailing list