EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #10037
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Help with redirect loops in EPrints 3.3.16
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Help with redirect loops in EPrints 3.3.16
- From: Gunnar Wolf <gwolf@gwolf.org>
- Date: Wed, 12 Mar 2025 18:15:22 -0600
CAUTION: This e-mail originated outside the University of Southampton. Hello, I have long been running an EPrints 3.3 installation. I recently... broke part of its functionality, and am losing my little remaining hair to get it back working. I have decided to humbly ask for your help. The issues started a couple of months ago, when we decided to enable TLS-based connections, due to browsers (and indexers) no longer trusting HTTP-only sites. I set up Letsencrypt's Certbot, and was happy. Only that I had issues with some routes — sometimes, I'd have dynamic URLs generated to /cgi/users/home/, but most often only to /users/home (which made it quite painful to upload new items... but was not 100% unworkable) Anyway, a couple of days ago, I found and tried to follow what appears to be the official instructions: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FHow_to_use_EPrints_with_HTTPS&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C7bdfaf285e264f54602208dd61c42718%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638774217388323402%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=4qLEfhhVZ61YM72DSvu4lerHTHw92pySBHVzWjGG%2B8c%3D&reserved=0 This led me to a more painful reality, where redirect loops just won't let me call anything under /cgi/users/home -- that is, most of EPrints' actions! $ HEAD -S https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fru.iiec.unam.mx%2Fcgi%2Fusers%2Fhome&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C7bdfaf285e264f54602208dd61c42718%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638774217388340387%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=E%2BR2PgC921QwrmWrNSeOpN4GV2Qbm9eCdbhEmiG%2BRFw%3D&reserved=0 HEAD https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fru.iiec.unam.mx%2Fcgi%2Fusers%2Fhome&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C7bdfaf285e264f54602208dd61c42718%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638774217388352946%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=kjRuBf%2BkFHWdDlGhGZoZE8714CKlkW2NYBBw3uKyXkQ%3D&reserved=0 302 Found HEAD https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fru.iiec.unam.mx%2Fcgi%2Fusers%2Fhome&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C7bdfaf285e264f54602208dd61c42718%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638774217388365194%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=FmheaV3M4lyFDk7B744yG6vBGdkgSNTcPK5xx2F8jP8%3D&reserved=0 302 Found HEAD https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fru.iiec.unam.mx%2Fcgi%2Fusers%2Fhome&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C7bdfaf285e264f54602208dd61c42718%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638774217388377170%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=qenZvHQ%2FLtFXCgI%2F36gLqgwBe%2BfItVUIKJ6rNzucZSE%3D&reserved=0 302 Found HEAD https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fru.iiec.unam.mx%2Fcgi%2Fusers%2Fhome&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C7bdfaf285e264f54602208dd61c42718%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638774217388389466%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=WKiuYa2bdqb3jzS0z3LnzBPZIHxuJ37yTxfk8Jd7Uuo%3D&reserved=0 302 Found HEAD https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fru.iiec.unam.mx%2Fcgi%2Fusers%2Fhome&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C7bdfaf285e264f54602208dd61c42718%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638774217388401868%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=VtP7Pv7dknq4nBOcviBsElYcLJzfFGCuEejft0gU67o%3D&reserved=0 302 Found HEAD https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fru.iiec.unam.mx%2Fcgi%2Fusers%2Fhome&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C7bdfaf285e264f54602208dd61c42718%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638774217388414055%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=vuafhzPWw8GEbj7SWQwVwTfHx62zzhOyodFthN7i1yU%3D&reserved=0 302 Found HEAD https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fru.iiec.unam.mx%2Fcgi%2Fusers%2Fhome&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C7bdfaf285e264f54602208dd61c42718%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638774217388426025%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=x4Xyx9wK9d18Zuaqs3DmrZ0C%2Ffbv%2BDUdeyyGjrAJJNs%3D&reserved=0 302 Found HEAD https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fru.iiec.unam.mx%2Fcgi%2Fusers%2Fhome&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C7bdfaf285e264f54602208dd61c42718%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638774217388437967%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=TlfrOvJd1FFdYnMPDD3RvW6i2Qf4tlB2abmj0Hvq4l4%3D&reserved=0 302 Found Connection: close Date: Wed, 12 Mar 2025 23:54:11 GMT Location: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fru.iiec.unam.mx%2Fcgi%2Fusers%2Fhome&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C7bdfaf285e264f54602208dd61c42718%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638774217388449929%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=urwGZEBqxSgr7asWCNRrYl7ITcXw%2FTt0u5e7UDuNf5M%3D&reserved=0 (... headers describing my certificate ...) Client-Warning: Redirect loop detected (max_redirect = 7) (FWIW, no issues in publicly displaying my repository's URL 😉) All other requests work fine, including those aiming at others in the /cgi namespace: $ HEAD -S https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fru.iiec.unam.mx%2Fcgi%2Fstats%2Freport&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C7bdfaf285e264f54602208dd61c42718%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638774217388461806%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=L5TQ5U0DjkbmxCW9yrNHpc7T7NY0hOZQyoHGjQUwdDY%3D&reserved=0 HEAD https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fru.iiec.unam.mx%2Fcgi%2Fstats%2Freport&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C7bdfaf285e264f54602208dd61c42718%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638774217388475434%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=hcJA7egL1%2FLCbjgfiEcu5eKmyO3WTnKLUk07V28ZrGo%3D&reserved=0 302 Found HEAD https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fru.iiec.unam.mx%2Fcgi%2Fstats%2Freport&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C7bdfaf285e264f54602208dd61c42718%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638774217388487337%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=HE%2FJyqSANwjGBNsYJTf1jJlHaSmQUDk2xDxkt6q5%2FE4%3D&reserved=0 200 OK I don't want to spam the list with all of my existing bits of configuration. Please tell me if there is anything worth sharing. The contents of my cfg/cfg.d/10_core.pl file are: # This file was created by bin/epadmin # You can regenerate this file by doing ./bin/epadmin config_core iiec $c->{host} = 'ru.iiec.unam.mx'; $c->{port} = '80'; $c->{aliases} = [ ]; $c->{http_url} = 'https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fru.iiec.unam.mx%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C7bdfaf285e264f54602208dd61c42718%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638774217388499463%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=4NY%2B2AxFnDTQgA0Kkv7CD1JoM2UPnUgjzMFBrhv6DdA%3D&reserved=0'; $c->{http_cgiurl} = 'https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fru.iiec.unam.mx%2Fcgi&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C7bdfaf285e264f54602208dd61c42718%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638774217388511351%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=iuDaW0chvSJqWGt4XgB8Gb%2FpEdkKteV%2FJtUb%2BnpjB9Q%3D&reserved=0'; $c->{base_url} = "https://$c->{host}"; $c->{securehost} = $c->{host}; $c->{secureport} = 443; $c->{http_root} = undef; Thank you for any advice you can give me!
- Follow-Ups:
- Re: [EP-tech] Help with redirect loops in EPrints 3.3.16
- From: Yuri Carrer <yuri.carrer@unipd.it>
- Re: [EP-tech] Help with redirect loops in EPrints 3.3.16
- Prev by Date: [EP-tech] Thesis_type_display
- Next by Date: Re: [EP-tech] Help with redirect loops in EPrints 3.3.16
- Previous by thread: [EP-tech] Thesis_type_display
- Next by thread: Re: [EP-tech] Help with redirect loops in EPrints 3.3.16
- Index(es):