AKZN Notes

Archives for My Lazy and Forgetful Mind

Category: Perl

Fix EPrints 3.4.7 cgi HTTPS Redirect Loop (Certbot + Apache)

Fix: EPrints 3.4.7 /cgi HTTPS Redirect Loop (Certbot + Apache) Problem When enabling HTTPS using Certbot, EPrints /cgi endpoints (e.g. /cgi/users/login) return: 302 → same URL (infinite redirect) Main site works, but only /cgi loops. Root Cause Certbot generates its own SSL vhost: /opt/eprints3/cfg/apache/{repoid}-le-ssl.conf However, it omits required EPrints directives, specifically: PerlSetVar EPrints_Secure yes Without […]