From: Craig B. <cra...@ma...> - 2021-07-02 18:55:28
|
I should have said, I do the dashboard, eXide and such directly in Jetty on port 8443 (with firewall rules restricting access to that port). The only thing on port 443 is a single app proxied by Apache to localhost:8080. > On Jul 2, 2021, at 8:37 AM, Eduard Drenth <ed...@FR...> wrote: > > Thanks, tried to adapt your setup to /somecontext, for example: > > ProxyPass "/TEST/modellenhisgis" "http://host:port/exist" > ProxyPassReverse "/TEST/modellenhisgis" "http://host:port/exist" > > RewriteEngine on > RewriteRule ^/exist/(.*)$ /TEST/modellenhisgis/$1 [PT] > > AddOutputFilterByType SUBSTITUTE text/html > > Substitute "s|/exist/|/TEST/modellenhisgis/|n" > > But the /exist context is unwanted for me and logging in only works on /exist. > > So it looks one cannot (easily) run several exist-db instances behind different context paths with all functionality (exide, dashboar, package manager, monex, login,..) available. > > Looks like exist-db does some things using absolute paths instead of relative to context path. > > I may have to reconsider my setup > > Bye, Eduard > > -----Original Message----- > From: Craig Berry <cra...@ma...> > To: exi...@li... <exi...@li...> > Cc: dth...@ut... <dth...@ut...>, Eduard Drenth <ed...@FR...> > Subject: Re: [Exist-open] [Ext] apache reverse proxy > Date: Fri, 02 Jul 2021 06:24:35 -0500 > > I have a setup that looks like this: > > ProxyPass / > http://localhost:8080/exist/apps/appname/ > timeout=1200 > ProxyPassReverse / > http://localhost:8080/exist/apps/appname/ > timeout=1200 > > RewriteEngine on > RewriteRule ^/exist/apps/appname/(.*)$ /$1 [PT] > RewriteRule ^/(.*)$ /$1 [PT] > > AddOutputFilterByType INFLATE;SUBSTITUTE;DEFLATE text/html > > Substitute "s|/exist/apps/appname/|/|n" > > and that lets me run the "appname" app as if it were /. > >> On Jul 2, 2021, at 12:24 AM, Eduard Drenth < >> ed...@FR... >> > wrote: >> >> Thanks, the quotes don't solve the problem, your situation succeeds because you context path is /exist >> >> -----Original Message----- >> From: "Thomason, Donald B" < >> dth...@ut... >> > >> To: Eduard Drenth < >> ed...@fr... >> >, >> exi...@li... >> < >> exi...@li... >> > >> Subject: Re: [Ext] [Exist-open] apache reverse proxy >> Date: Thu, 01 Jul 2021 16:00:22 +0000 >> >> I have been able to do it without the quotes, e.g.: >> ProxyPass /exist >> http://ip:8080/exist >> >> ProxyPassReverse /exist >> http://ip:8080/exist >> >> >> >> <image001.png> >> >> Donald B. Thomason, Ph.D. >> Dean and Professor >> The University of Tennessee Health Science Center >> College of Graduate Health Sciences >> Suite 807, 920 Madison Ave >> Memphis, TN 38163 >> dth...@ut... >> >> t: +1 901.448.7224 >> https://grad.uthsc.edu >> >> >> >> From: Eduard Drenth < >> ed...@fr... >> > >> Date: Thursday, July 1, 2021 at 10:35 AM >> To: " >> exi...@li... >> " < >> exi...@li... >> > >> Subject: [Ext] [Exist-open] apache reverse proxy >> >> Dear all, >> >> I would like to run exist-db behind a certain path in apache, like so: >> >> ProxyPass "/TEST/modellenhisgis" " >> http://ip:port/exist >> " >> ProxyPassReverse "/TEST/modellenhisgis" " >> http://ip:port/exist >> " >> >> This fails because several request are made to /exist instead of to /TEST/modellenhisgis. >> >> The docs >> http://www.exist-db.org/exist/apps/doc/production_web_proxying.xml#sect-apache >> do not help because I do not have a virhost. >> >> Can I run exist behind a path? >> >> Regards, Eduard >> >> >> -- >> Eduard Drenth, Software Architekt >> >> ed...@fr... >> >> >> Doelestrjitte 8 >> 8911 DX Ljouwert >> +31 58 234 30 47 >> +31 62 094 34 28 (privé) >> >> skype: eduarddrenth >> https://github.com/eduarddrenth >> >> frisian.eu >> gpg: >> https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth >> >> >> >> Op freed bin ik thús/wurkje ik minder >> >> >> >> -- >> Eduard Drenth, Software Architekt >> >> ed...@fr... >> >> >> Doelestrjitte 8 >> 8911 DX Ljouwert >> +31 58 234 30 47 >> +31 62 094 34 28 (privé) >> >> skype: eduarddrenth >> https://github.com/eduarddrenth >> >> frisian.eu >> gpg: >> https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth >> >> >> >> Op freed bin ik thús/wurkje ik minder >> >> >> >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> >> https://lists.sourceforge.net/lists/listinfo/exist-open >> > > ________________________________________ > Craig A. Berry > > "... getting out of a sonnet is much more > difficult than getting in." > Brad Leithauser > > -- > Eduard Drenth, Software Architekt > > ed...@fr... > > Doelestrjitte 8 > 8911 DX Ljouwert > +31 58 234 30 47 > +31 62 094 34 28 (privé) > > skype: eduarddrenth > https://github.com/eduarddrenth > frisian.eu > gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth > > > Op freed bin ik thús/wurkje ik minder ________________________________________ Craig A. Berry "... getting out of a sonnet is much more difficult than getting in." Brad Leithauser |