EPrints Technical Mailing List Archive

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

Message: #09696

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

Re: [EP-tech] Eprints over NGINX

Hi Zen,

No I have not specifically.  However, I would advise that if you use a proxy that will serve pages over HTTPS you still configure EPrints to use HTTPS not HTTP.  Usually your load balancer / reverse policy will allow you to use a self-signed certificate and not care about the expiry date (or if it does, set one way in the future).  

If you configure EPrints as HTTP only and the proxy serves pages over HTTPS you will likely get issues.  This is because historically (and still in use) EPrints content gets embedded in other websites, so URLs used in this context need to be full URLs rather that just paths.  Having an HTTPS proxy with EPrints running as HTTP only has led to things like the search form in the template not working as it is submits to an HTTP URL whilst the page served by the proxy is on HTTPS and browsers legitimately do not like this.  

There are ways to modify configuration to resolve most of these issues, (e.g. manually setting $c->{http_url}, $c->{http_cgiurl}, $c->{base_url} and $c->{perl_url} to https rather than http).  Howevver, my experience from trying to help others who have done this is there are still a few places where this does not fix the problem or by hacking the config like this creates new problems.  Therefore, making sure EPrints is setup for HTTPS is the more reliable option.


David Newman

On 17/04/2024 11:21, zen zenitram wrote:
CAUTION: This e-mail originated outside the University of Southampton.
CAUTION: This e-mail originated outside the University of Southampton.
Good day!

Anyone here tried to install Eprints and use NGINX as load balancer or reverse proxy?

Thank you!

*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List
*** Archive: https://www.eprints.org/tech.php/
*** EPrints community wiki: https://wiki.eprints.org/