multidomain in 8.0 - is it possible

24 views
Skip to first unread message

George Peterson

unread,
Dec 24, 2024, 11:43:15 AM12/24/24
to DSpace Developers
Hi, 

I'm upgrading dspace-6.3 to the newest 8.0. The current 6.3 site supports 2 domains, where the same DSpace is available by https://domain1.com and https://domain2.com

I'd need 8.0 to do the same, but so far i seem to fail. 

I tried different tricks with Apache and mod_proxy, the max i was able to do is to make domain1 fully working and domain2's angular display the 500 page - i fail so far to make domain2's angular to talk to backend. The problem is (naturally) dspace.ui.url - it does not allow any flexibility, i'm getting all types of CORS errors and links still hardcoded to domain1

So at the end the question is - is it possible to have one DSpace accessible by 2 domains? If yes, what is involved? 

Thanks

DSpace Developers

unread,
Jan 6, 2025, 3:19:55 PMJan 6
to DSpace Developers
Hi,

I'm not sure that's possible in 8.0 (or 7.x) at this time.  As you noted, the backend uses the "dspace.ui.url" to determine how to build links that are sent back. The closest you could get would be to have one "primary" UI (defined in "dspace.ui.url") and one secondary UI (specified as an additional URL in "rest.cors.allowed-origins"). This should allow the REST API to "trust" both URLs (so it should avoid CORS errors), but the links will still *hardcode* back to the primary UI.

At this time, we do not support full multitenancy, where you can run multiple UIs against the same REST API & have each act as if they are separate DSpace sites.  I think that's what you'd also require -- as the core issue is the backend is expecting there to be a primary UI (defined in "dspace.ui.url").

Tim



George Peterson

unread,
Jan 7, 2025, 3:45:03 AMJan 7
to DSpace Developers
OK, Thank you Tim

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-devel...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dspace-devel/cb142d75-efe7-47ed-a073-9be263b9c8b4n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages