LibreSource Community 2.1 http://dev.libresource.org/home/development/roadmap/lsc2-1 How to change the hostname... http://dev.libresource.org/home/development/roadmap/lsc2-1/b7462ccbc0a8001e01d67ed9fb1a0925 Arnaud martel 2007-02-12T19:45:34+01:00 Everything works great but I wanted to change the hostname (to have an URL like http://www.mysite.org). So, I have edited and modified the following files:
  • /usr/local/LibreSource/JOnAS/conf/server.xml
  • /usr/local/LibreSource/Libresource/ls-config-unix.properties
  • /etc/httpd/conf.d/libresource.conf (to declare the virtual server)
according the 2 threads I found about "how to change the hostname".

And, then, I had 2 troubles:

  • Impossible to log in
  • the base href (in the HTML page source) was not updated (always localhost:9000)
So, I downloaded the source files and, after a while, I found a solution: In the file /usr/local/LibreSource/LibreSource/build.xml (used by ant), I copied the line 66 and changed name="uri-host" with name="server-url"

and it works!!! (Don't forget to run config.sh again, to deploy)...

I don't know if my solution is a good one (I didn't spend a lot of time...) but I think that, maybe, there is something wrong with the source file KernelServiceBean.java (or with the build.xml file) because the getServerUrl function uses server-url and not uri-host ...

Best Regards,

Arnaud]]> Macros example http://dev.libresource.org/home/development/roadmap/lsc2-1/95532062c0a8001e01ab8f71e1070d06 Michael Stahl 2006-12-18T12:29:50+01:00 I think this would be a major improvment since the effot is almost nill for someone who already knows the syntax, and the time (and frustration) saving for new-commers is significant.

Michael.]]> Upload of multiple files http://dev.libresource.org/home/development/roadmap/lsc2-1/a0b6c1d7c0a8001e002ba9af4f496003 RĂ¼diger Lincke 2005-08-10T04:06:36+02:00