EPrints Technical Mailing List Archive

Message: #00967


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

[EP-tech] Re: force https


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]