[EP-tech] Re: force https

Gunnar Wolf gwolf at gwolf.org
Thu Aug 23 20:03:20 BST 2012


Carl Franks dijo [Thu, Aug 23, 2012 at 12:58:54PM +0000]:
> Is there a built-in way to force EPrints to only run under https, and have it not generate any http links?
> 
> Sorry if this is a bit basic, but I can't find anything in the site search that covers it.

Maybe the blunt, easy way to route around this would be to run a HTTP
server on port 80, redirecting any request to the corresponding HTTPS
site. With Apache, you can do it putting this snippet on your
non-HTTPS virtualhost configuration:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://your.host.name/$1 [R,L]


More information about the Eprints-tech mailing list