Resource Menu

RE : Configure Libresource through apache reverse proxy
Hello, thanks again for your help. Unfortunately it was'nt possible to proceed as you suggested since we did not want to rebuild the application from sources. So, we simply added a libresource dedicated name to our DNS and configured the apache server to have one more virtual host (also dedicated to libresource).

So, the configuration I described becomes:

  • In the apache proxy.conf file
ProxyPass / http://ip_machine_B:9000
ProxyPassReverse / http://ip_machine_B:9000
  • In on the Libresource server
  • In 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="libresource_dns_name_machine_A" proxyPort="80"/>

where libresource_dns_name_machine_A is the libresource dedicated name in our DNS. Basically, libresource_dns_name_machine_A is libresource.dns_name_machine_A, so it has the same domain.

Now, I should be able to call http://libresource_dns_name_machine_A which should redirect me to the libresource default page. Instead, I get very ugly page with no stylesheets and all libresource menus aligned on the left, no images. I tried rechange the kernel.serverUrl=http://ip_machine_name_B:9000, just for test and now I get the expected page (but of course, this solution isn't satisfying since only the first request will get through the reverse proxy).

It seems to me as if the error would come from the value I set to the kernel.serverUrl but I don't see what. Any idea?




posted by Alexandre Neubert at Oct 15, 2007 4:40 PM