<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Problem with multisite-config an internal links</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hello</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I have various problems with multisite-config an internal links in OpenCMS 6.2.2.</FONT>

<BR><FONT SIZE=2 FACE="Arial">One problem is that internal links are converted to external links containing the workplace server name</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Here is my configuration: </FONT>

<BR><FONT SIZE=2 FACE="Arial">I have a frontend Apache Webserver with mod_proxy and mod_rewrite and I'm convinced that the configuration is as described in the various multisite threads. The are three virtual hosts in my Apache conf:</FONT></P>

<P><A HREF="https://workplace"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">https://workplace</FONT></U></A><FONT SIZE=2 FACE="Arial"> should serve the workplace for editors</FONT>

<BR><A HREF="http://mysite"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://mysite</FONT></U></A><FONT SIZE=2 FACE="Arial"> should serve the website for webusers</FONT>

<BR><A HREF="https://mysite"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">https://mysite</FONT></U></A><FONT SIZE=2 FACE="Arial"> should serve secured parts of the website for webusers</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Each virtual host connects to its own Tomcat connector having the appropriate proxyName. </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">1) </FONT>

<BR><FONT SIZE=2 FACE="Arial">My opencms-system.xml looks like this:</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"><sites></FONT>

<BR><FONT SIZE=2 FACE="Courier New">  <workplace-server><A HREF="https://workplace">https://workplace</A></workplace-server></FONT>

<BR><FONT SIZE=2 FACE="Courier New">  <default-uri>/sites/mysite/</default-uri></FONT>

<BR><FONT SIZE=2 FACE="Courier New">  <site server="<A HREF="http://mysite:80">http://mysite:80</A>" uri="/sites/mysite/"></FONT>

<BR><FONT SIZE=2 FACE="Courier New">    <secure server="<A HREF="https://mysite:443">https://mysite:443</A>" exclusive="true" error="false"/></FONT>

<BR><FONT SIZE=2 FACE="Courier New">  </site></FONT>

<BR><FONT SIZE=2 FACE="Courier New"></sites></FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Running OpenCMS with this configurations works almost fine except when I create internal links using the FCKeditor.</FONT>

<BR><FONT SIZE=2 FACE="Arial">If i add a link to some text field, edit the document two times, then the link is converted to an external link. </FONT>

<BR><FONT SIZE=2 FACE="Arial">Unfortunately the link-URI contains the workplace-servername!</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I figured out that the OpenCMS SiteManager claas matches the links to its servernames configured in opencms-system.xml. Obviously, the workplace-server URI is not known by the SiteManager.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">2) Therefore I changed my configuration by changing the site-uri and adding an alias:</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"><sites></FONT>

<BR><FONT SIZE=2 FACE="Courier New">  <workplace-server><A HREF="https://workplace">https://workplace</A></workplace-server></FONT>

<BR><FONT SIZE=2 FACE="Courier New">  <default-uri>/sites/mysite/</default-uri></FONT>

<BR><FONT SIZE=2 FACE="Courier New">  <site server="<A HREF="https://workplace">https://workplace</A>" uri="/sites/mysite/"></FONT>

<BR><FONT SIZE=2 FACE="Courier New">    <secure server="<A HREF="https://mysite">https://mysite</A>" exclusive="true" error="false"/></FONT>

<BR><FONT SIZE=2 FACE="Courier New">    <alias server="<A HREF="http://mysite">http://mysite</A>"/></FONT>

<BR><FONT SIZE=2 FACE="Courier New">  </site></FONT>

<BR><FONT SIZE=2 FACE="Courier New"></sites></FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Now the problem with internal links is solved, but a new problem occurs:</FONT>

<BR><FONT SIZE=2 FACE="Arial">A) I access a page at </FONT><A HREF="http://mysite/page1.html"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://mysite/page1.html</FONT></U></A>

<BR><FONT SIZE=2 FACE="Arial">B) Then I follow a link to a page which is marked as "secure=true" at </FONT><A HREF="https://mysite/page2.html"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">https://mysite/page2.html</FONT></U></A>

<BR><FONT SIZE=2 FACE="Arial">C) Now I follow a link to another page which is not secured. Now the link points to </FONT><A HREF="http://workplace/page3.html"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://workplace/page3.html</FONT></U></A>

<BR><FONT SIZE=2 FACE="Arial">The linkbuild creates an absolut uri which points to the workplace server. Maybe this is becaus mysite is configured as alias.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">3) So I changed again my configuration to this. The sitemanager should know that there are two different sites:</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"><sites></FONT>

<BR><FONT SIZE=2 FACE="Courier New">  <workplace-server><A HREF="https://workplace">https://workplace</A></workplace-server></FONT>

<BR><FONT SIZE=2 FACE="Courier New">  <default-uri>/sites/mysite/</default-uri></FONT>

<BR><FONT SIZE=2 FACE="Courier New">  <site server="<A HREF="https://workplace">https://workplace</A>" uri="/sites/default/"></FONT>

<BR><FONT SIZE=2 FACE="Courier New">  <site server="<A HREF="http://mysite">http://mysite</A>" uri="/sites/mysite/"></FONT>

<BR><FONT SIZE=2 FACE="Courier New">    <secure server="<A HREF="https://mysite">https://mysite</A>" exclusive="true" error="false"/></FONT>

<BR><FONT SIZE=2 FACE="Courier New">  </site></FONT>

<BR><FONT SIZE=2 FACE="Courier New"></sites></FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Now I have again problem creating internal links as described above at pos 1). In contrast a internal link /sites/mysite/a/b ist converted to /sites/default/a/b.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Ok, a workaround would be to drop the workplace-URI and run the workplace under the mysite-URI. But nevertheless I think this kind of multisite-configuration should work.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">So please help!</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Kind regards</FONT>

<BR><FONT SIZE=2 FACE="Arial">Christian</FONT>
</P>

</BODY>
</HTML>