On Tue, Jun 21, 2022 at 06:43:40AM -0700, Karol Sokalski wrote: > I am in the process of installing DSpace 7 as a production. (Debian 11, > apache2, tomcat9) > I have a problem with SSL ( I have a trusted SSL certificate). > Unfortunately I cannot run the backend and frontend on the same domain > name. > > Everything works when I create 2 vhosts with two different domain names: > frontend.test.pl and backend.test.pl in apache and certificates for them. > But when I try to do everything in one vhost and one domain name e.g. > dspace.test.pl, it won't work for me, because in apache vhost you can add > only one proxy-pass.e.g.
That's incorrect. You can have any number of reverse proxies. > ServerName dspace.test.pl > > ProxyRequests On > DSpace backend > ProxyPass /server http://localhost:8080/server > ProxyPassReverse /server http://localhost:8080/server > RequestHeader set X-Forwarded-Proto https > > DSpace FRONTEND > ProxyPass / http://localhost:4000/ > ProxyPassReverse / http://localhost:4000/ That should work, BUT "ProxyRequests On" is for a forward proxy and very likely should be "Off". Here's our local demo. We're using AJP rather than HTTP to proxy the back-end, but in essence it's a lot like yours: # DSpace v7 demo back-end <Location "/dspace-v7/"> ProxyPass ajp://[::1]:8509/dspace-v7/ </Location> # DSpace v7 demo front-end <Location "/"> SetEnv proxy-nokeepalive 1 SetEnv proxy-initial-not-pooled 1 </Location> ProxyPass "/" "http://localhost:4000/" disablereuse=On max=1 ProxyPassReverse "/" "http://localhost:4000/" How does your configuration "not work"? What errors do you see? What behavior? Is there anything relevant in the backend log? the frontend log? the browser console? -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- 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 Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YrHaAcBEoRyxsiu2%40IUPUI.Edu.
signature.asc
Description: PGP signature
