<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><font face="Calibri Light">Hello
Matthias<br>
<br>
if all your applications have different environments, it will be
difficult to access relative URL because each system manage his
own URLs differently.<br>
<br>
A configuration should be done at the level of <b>Apache
Virtual Host configuration file</b>. From there you can fix
specifics URL and their targets (using tomcat connectors) in
your systems.<br>
<br>
Hope this will helps<br>
<br>
Regards<br>
Joseph</font> <br>
<br>
<br>
Le 04.03.2014 10:23, Matthias Griselle a écrit :<br>
</div>
<blockquote
cite="mid:CACA8raBNx4mhKCmiefhUk3r2nt_Q44zaiavTm4hsH-3ybUoQCw@mail.gmail.com"
type="cite">
<div dir="ltr">Hi everyone,
<div><br>
</div>
<div>I'm using OpenCMS 8.5.2 and would like to create relative
links in an HTML Widget.</div>
<div>I can't use absolute links, because when I'm switch from an
environment to another one, urls are still referring to the
previous environment. </div>
<div><br>
</div>
<div>The problem is that my environment is a bit special : </div>
<div>- <a moz-do-not-send="true"
href="http://mywebsite.fr/opencms/">http://mywebsite.fr/opencms/</a>
refers to my OpenCMS server</div>
<div>- <a moz-do-not-send="true"
href="http://mywebsite.fr/appAlpha/">http://mywebsite.fr/appAlpha/</a>
refers to another application</div>
<div>- <a moz-do-not-send="true"
href="http://mywebsite.fr/appBeta/">http://mywebsite.fr/appBeta/</a> again
another application ...</div>
<div>I have several applications like that. <br>
<br>
</div>
<div>I modified opencms-system.xml
(<sites><site/></sites>), but OpenCMS only
cares about my domain name and my port. So, it transforms "<a
moz-do-not-send="true"
href="http://mywebsite.fr/appAlpha/home/">http://mywebsite.fr/appAlpha/home/</a>"
to "/sites/default/appAlpha/home", which is no sense. The
regenerated URL is then "<a moz-do-not-send="true"
href="http://mywebsite.fr/opencms/appAlpha/home">http://mywebsite.fr/opencms/appAlpha/home</a>".</div>
<div><br>
</div>
<div>Do anyone have an idea about how to configure this ? </div>
<div><br>
</div>
<div>Regards, </div>
<div>Matthias GRISELLE</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>