Mark, It looks as if your setup is similar to mine, but your apache directives are a bit different from the ones suggested in the installation docs ( https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace) for both the frontend and the backend -- can you comment on your tweaks? ~~Bill
On Tue, Jun 21, 2022 at 9:47 AM Mark H. Wood <[email protected]> wrote: > 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 > . > -- Human wheels spin round and round While the clock keeps the pace... -- John Mellencamp ________________________________________________________________ Bill Tantzen University of Minnesota Libraries 612-626-9949 (U of M) 612-325-1777 (cell) -- 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/CADgrb7Emp%3D-%3DCNG%3DuqSA%2B5hauUSMPLhCM-ppJWAKhut0-5YHwg%40mail.gmail.com.
