Hi Fernando, Have you tried using the mod_proxy_html module as detailed in the last post at:
https://serverfault.com/questions/561892/how-to-handle-relative-urls-correctly-with-a-reverse-proxy To make a reverse proxy: 1. Install mod_proxy_html yum install mod_proxy_html • Load mod_proxy_html module LoadModule proxy_html_module modules/mod_proxy_html.so • And use following setting ProxyRequests off ProxyPass /folder/ http://test.madeupurl.com ProxyHTMLURLMap http://test.madeupurl.com /folder <Location /folder/> ProxyPassReverse / ProxyHTMLEnable On ProxyHTMLURLMap / /folder/ RequestHeader unset Accept-Encoding </Location> Best Regards Hugh Williams Professional Services OpenLink Software, Inc. // http://www.openlinksw.com/ Weblog -- http://www.openlinksw.com/blogs/ LinkedIn -- http://www.linkedin.com/company/openlink-software/ Twitter -- http://twitter.com/OpenLink Google+ -- http://plus.google.com/100570109519069333827/ Facebook -- http://www.facebook.com/OpenLinkSoftware Universal Data Access, Integration, and Management Technology Providers > On 22 Sep 2017, at 18:09, Fernando Carpani <fernando.carp...@gmail.com> wrote: > > Hello again. > We can solve the trouble in part using mod_substitute in proxy... > This may induce some errors if we have expressions more general than needed. > > Now, our problem is ODS. The here we have the same issue: the absolute paths > in html and scripts. > > These paths (like in the previous example de /conductor/) migth be change to > relative? > Or, at least, introducing a config variable with our external name to > generate the correct URL? > There are known issues can be introduced by these changes? > > Thanks. > FDO. > > 2017-09-21 16:10 GMT-03:00 Fernando Carpani <fernando.carp...@gmail.com>: > Hello. > > Yes, we try that. > > I don't understand the difference between this configuration and ours > configuration. > > In this configuration, each service has his proxy pass and proxy pass reverse. > > But this might be unnecesary because we use a generic proxy path. > > ProxyPass /mh/virt http://myInternalServer:XXXX > > ProxyPassReverse /mh/virt http://myInternalServer:XXXX > > > > Our problem is that the main page in the left panel is not adding /mh/virt > in any link. You can see that in http://www.fing.edu.uy/mh/virt/ > > The link to conductor (or ods) is http://www.fing.edu.uy/conductor (or ods) > without path. > > I think that this is because some javascript that take must be generating the > links without consider the path in the url. > > > In particular, with a grep over the code I find that: > > ./binsrc/vsp/index_left.vsp > 60- <body id="LCB"> > 61- <?vsp if (have_cond) { ?> > 62- <ul class="left_nav"> > 63: <li><img src="/images/nav_arrrow1.gif" width="8" height="8" /> <a > href="/conductor/" target="_top">Conductor UI</a></li> > 64- </ul> > 65- <?vsp } ?> > 66- > > If this code goes direct to the installation, always must ignore the path.. > > OK... In some way I can rewrite the code possibly with some apache rule... > > Someone has this trouble? > > Thanks. > FDO. > > > > > > 2017-09-21 14:27 GMT-03:00 Hugh Williams <hwilli...@openlinksw.com>: > Hi Fernando, > > Have you reviewed the following document on Setting up an Apache HTTP server > to proxy over a Virtuoso HTTP server ? > > > http://vos.openlinksw.com/owiki/wiki/VOS/VirtTipsAndTricksGuideSetApacheVirtuosoPortNumber > > Best Regards > Hugh Williams > Professional Services > OpenLink Software, Inc. // http://www.openlinksw.com/ > Weblog -- http://www.openlinksw.com/blogs/ > LinkedIn -- http://www.linkedin.com/company/openlink-software/ > Twitter -- http://twitter.com/OpenLink > Google+ -- http://plus.google.com/100570109519069333827/ > Facebook -- http://www.facebook.com/OpenLinkSoftware > Universal Data Access, Integration, and Management Technology Providers > > > > > On 20 Sep 2017, at 13:42, Fernando Carpani <fernando.carp...@gmail.com> > > wrote: > > > > Hello. > > Because I had a problem with my suscription to the list, and I don't know > > which is the status of my consult, I reformulate IT. > > I'm trying to install virtuoso using apache as reverse proxy. > > > > My configuration in apache looks like: > > ProxyPass /mh/virt http://myInternalServer:XXXX > > > > ProxyPassReverse /mh/virt http://myInternalServer:XXXX > > > > <Location "/mh/virt/"> > > > > ProxyHTMLEnable On > > > > ProxyHTMLExtended On > > > > ProxyHTMLURLMap / /mh/virt/ > > > > ProxyHTMLURLMap http://myInternalServer:XXXX /mh/virt/ > > > > </Location> > > > > But the internal links from conductor, ods, or anything are wrong: without > > the path /mh/virt. > > > > When we inspect the pages, we see that theses url are absolute, so, we > > can't add the path ... > > > > There are some configuration to do add the path to these url's ?. > > > > Thanks. > > FDO > > > > > > 2017-09-18 15:48 GMT-03:00 Fernando Carpani <fernando.carp...@gmail.com>: > > Hello. > > I'm trying to install a virtuoso using an apache reverse proxy. > > > > My configurations looks like: > > > > ProxyPass /mh/virt http://myInternalServer:XXXX > > > > ProxyPassReverse /mh/virt http://myInternalServer:XXXX > > > > <Location "/mh/virt/"> > > > > ProxyHTMLEnable On > > > > ProxyHTMLExtended On > > > > ProxyHTMLURLMap / /mh/virt/ > > > > ProxyHTMLURLMap http://myInternalServer:XXXX /mh/virt/ > > > > </Location> > > > > But the internal links in all pages are wrong, without the path /mh/virt. > > > > There are some internal configuration to change that (without touch any > > VSP)? > > > > Thanks. > > > > FDO. > > > > > > > > > > ------------------------------------------------------------------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! > > http://sdm.link/slashdot_______________________________________________ > > Virtuoso-users mailing list > > Virtuoso-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/virtuoso-users > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! > http://sdm.link/slashdot_______________________________________________ > Virtuoso-users mailing list > Virtuoso-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/virtuoso-users
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Virtuoso-users mailing list Virtuoso-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/virtuoso-users