|
From: Eduard D. <ed...@fr...> - 2021-07-02 13:38:07
|
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/ap
ps/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...>Su
> bject: Re: [Ext] [Exist-open] apache reverse proxyDate: 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 ProfessorThe University of
> Tennessee Health Science CenterCollege of Graduate Health
> SciencesSuite 807, 920 Madison AveMemphis, TN
> 381...@ut...
> t: +1 901.448.7224https://grad.uthsc.edu
> From: Eduard Drenth <ed...@fr...>Date: Thursday, July
> 1, 2021 at 10:35 AMTo: "exi...@li..." <exist-
> op...@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 88911 DX Ljouwert+31 58 234 30 47+31 62 094 34 28
> (privé) skype: eduarddrenthhttps://github.com/eduarddrenth
> frisian.eugpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth
>
> Op freed bin ik thús/wurkje ik minder -- Eduard Drenth, Software
> Architekt
> ed...@fr...
>
> Doelestrjitte 88911 DX Ljouwert+31 58 234 30 47+31 62 094 34 28
> (privé)
> skype: eduarddrenthhttps://github.com/eduarddrenth
> frisian.eugpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth
>
>
> Op freed bin ik thús/wurkje ik minder
>
>
> _______________________________________________Exist-open mailing
> lis...@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
|