From: Craig B. <cra...@ma...> - 2021-07-02 11:24:51
|
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 |