<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16945" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=729573316-11012010><FONT face=Arial
color=#0000ff size=2>Hi Stephan, Jacek</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=729573316-11012010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=729573316-11012010><FONT face=Arial
color=#0000ff size=2>I believe I have a more or less clean install of OpenCms,
in which the protocol is indeed present in the <site ...> part. So it
would seem that the protocol should be present. Moreover, it works.
This means that having the protocol present should not
cause any trouble (as long as it's the protocol you're using). The port
number (usually 8080) should be present, but since I
use Apache/Tomcat integration, I just leave the port blank (meaning port 80).
Using different ports for different sites is not a requirement, at least not to
my knowledge (and none of our multisite setups use different
ports).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=729573316-11012010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=729573316-11012010><FONT face=Arial
color=#0000ff size=2>So, a site section typically looks like this, in my
opencms-system.xml: <site server="</FONT><A
href="http://my.domain.name"><FONT face=Arial
size=2>http://my.domain.name</FONT></A><FONT face=Arial><FONT color=#0000ff
size=2>" </FONT></FONT></SPAN><SPAN class=729573316-11012010><FONT
face=Arial color=#0000ff size=2>uri="/sites/mysite/" /></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=729573316-11012010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=729573316-11012010><FONT face=Arial
color=#0000ff size=2>Jacek, I can't seem to get your problem exactly.
You're using the two domains "main.domain" and "main_1.domain",
but these are not present in your current <sites> section of
opencms-system.xml. </FONT></SPAN><SPAN class=729573316-11012010><FONT
face=Arial color=#0000ff size=2>Please check that you're using the correct
domain names.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=729573316-11012010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=729573316-11012010><FONT face=Arial
color=#0000ff size=2>If you are using Apache in front (Apache/Tomcat integration
like in the link i provided earlier) please make sure that you are not using
port 8080 in the <sites> section of
opencms-system.xml.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=729573316-11012010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=729573316-11012010><FONT face=Arial
color=#0000ff size=2>Please let me know how it goes.</FONT></SPAN><SPAN
class=729573316-11012010><FONT face=Arial color=#0000ff
size=2></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=729573316-11012010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=729573316-11012010><FONT face=Arial
color=#0000ff size=2>All the best,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=729573316-11012010><FONT face=Arial
color=#0000ff size=2>Paul</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=729573316-11012010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><BR></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>Stephan
Hartmann<BR><B>Sent:</B> 11. januar 2010 16:30<BR><B>To:</B> The OpenCms
mailing list<BR><B>Subject:</B> Re: [opencms-dev] multisite: wrong effects on
correct settings 2<BR></FONT><BR></DIV>
<DIV></DIV>Hi,<BR><BR>the port is important while the protocol is not (and
must not be defined) to match a host name to a site.<BR>You can use the same
host name (or ip) with diffentent ports to match different sites.<BR><BR>So
your server attribute should look like: <site server="host:port" uri="..."
/><BR><BR>Regards,<BR>Stephan<BR><BR>
<DIV class=gmail_quote>2010/1/11 jacek grzebyta (RRes-Roth) <SPAN
dir=ltr><<A
href="mailto:jacek.grzebyta@bbsrc.ac.uk">jacek.grzebyta@bbsrc.ac.uk</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi
Paul,<BR><BR>Thanks a lot. I tried today whole day. And now I have really
nothing.<BR><BR><BR><A href="http://main_1.domain/opencms/opencms/"
target=_blank>http://main_1.domain/opencms/opencms/</A><BR><BR>shows me
OpenCms welcome page.<BR><BR><A href="http://main.domain/"
target=_blank>http://main.domain/</A> shows me another stuff.<BR><BR>So
Apache's doing what should do it looks the problem is at OpenCms
because:<BR><BR><A href="http://main_1.domain:8080/"
target=_blank>http://main_1.domain:8080/</A> shows me opencms welcome with
the navy-blue background;<BR><A href="http://main.domain:8080"
target=_blank>http://main.domain:8080</A> shows normal opencms
welcome<BR><BR>my 'sites' is now:<BR><BR>
<sites><BR> <workplace-server><A
href="http://babvs14.rothamsted.bbsrc.ac.uk:8080"
target=_blank>http://babvs14.rothamsted.bbsrc.ac.uk:8080</A></workplace-server><BR>
<DIV class=im>
<default-uri>/sites/default/</default-uri><BR></DIV>
<site server="<A
href="http://babvs14.rothamsted.bbsrc.ac.uk:8080"
target=_blank>http://babvs14.rothamsted.bbsrc.ac.uk:8080</A>"
uri="/sites/default/"/><BR> <site server="<A
href="http://babvs14_1.rothamsted.bbsrc.ac.uk:8080"
target=_blank>http://babvs14_1.rothamsted.bbsrc.ac.uk:8080</A>"
uri="/sites/phibase/"/><BR> </sites><BR><BR>But I don't
know whether it is important using http:// & port in site tab. Different
manuals have difference. I tested that not using pre and postfixes just do
that for both addresses I have the same normal welcome.<BR>For sure both
sites exist in opencms system cos log shows:<BR><BR>11 Jan 2010 14:45:09,322
INFO [pencms.site.CmsSiteManagerImpl: 197] . Site root added
: server: <A href="http://main.domain:8080"
target=_blank>http://main.domain:8080</A> uri: /sites/default title:
/sites/default/<BR>11 Jan 2010 14:45:09,323 INFO
[pencms.site.CmsSiteManagerImpl: 197] . Site root added
: server: <A href="http://main_1.domain:8080"
target=_blank>http://main_1.domain:8080</A> uri: /sites/phibase title:
/sites/phibase/<BR><BR><BR>And tomcat:<BR>
<DIV class=im> <Connector port="8080"
protocol="HTTP/1.1"<BR>
connectionTimeout="20000"<BR>
redirectPort="8443" /><BR><BR></DIV>So I used 8080 only. I will
use mod_proxy cos I am too lazy to install mod_jk and config now. :)<BR>I'll
do in the future.<BR><BR>With best wishes,<BR>
<DIV>
<DIV></DIV>
<DIV
class=h5>Jacek<BR><BR><BR>_______________________________________________<BR>This
mail is sent to you from the opencms-dev mailing list<BR>To change your list
options, or to unsubscribe from the list, please visit<BR><A
href="http://lists.opencms.org/mailman/listinfo/opencms-dev"
target=_blank>http://lists.opencms.org/mailman/listinfo/opencms-dev</A><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>