Resource Menu


RE : Configure Libresource through apache reverse proxy
Hi, Thanks for your answer. I added the proxy info, but I still have the same problem. Maybe I develop a little bit more the conf I made:
  • Apache 2.2 reverse proxy is running on machine A and port 80
  • Libresource server is running on machine B and port 9000
The conf I made:
  • In the apache proxy.conf file
ProxyPass /libresource http://ip_machine_B:9000
ProxyPassReverse /libresource http://ip_machine_B:9000
  • In libresourceConfig.properties on the Libresource server
kernel.serverUrl=http://dns_name_machine_A/libresource
  • In the server.xml of the Libresource server:
<Connector port="9000" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="9043" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true"
               proxyName="dns_name_machine_A" proxyPort="80"/>

So, reverse proxy is sending to Libresource server if I call: http://dns_name_machine_A/libresource and Libresource server is calling the reverse proxy via the kernel.serverUrl. Now the behavior I get in the menu for example: So, on the second url, the libresource subpath is missing and I get a proxy error which is normal. Apparently, for these links (and others) Libresource does not use the kernel.serverUrl. But, I don't see how to solve this? Maybe add a libresource context in the libresource server?

Regards,

A.

posted by alexandreneubert at Oct 8, 2007 10:59 AM