<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>Re: [Seaside] Seaside 2.8 port override not overriding</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Oh, yes, I must have missed that one in Johns apache config post. This gets mentioned in the list a few times here and there, and I think I blogged about it somewhere. Thanks Dale, this could very much do it.<BR>
<BR>
Cheers!<BR>
<BR>
-Boris<BR>
(Sent from a BlackBerry)<BR>
<BR>
----- Original Message -----<BR>
From: seaside-bounces@lists.squeakfoundation.org &lt;seaside-bounces@lists.squeakfoundation.org&gt;<BR>
To: Seaside - general discussion &lt;seaside@lists.squeakfoundation.org&gt;<BR>
Sent: Tue Jul 31 08:17:11 2007<BR>
Subject: Re: [Seaside] Seaside 2.8 port override not overriding<BR>
<BR>
John,<BR>
<BR>
This may or may not be relevant, but for GemStone we set<BR>
ProxyPreserveHost On. From the Apache docs:<BR>
<BR>
&nbsp;&nbsp;&nbsp; This option should normally be turned |Off|. It is mostly useful in<BR>
&nbsp;&nbsp;&nbsp; special configurations like proxied mass name-based virtual hosting,<BR>
&nbsp;&nbsp;&nbsp; where the original Host header needs to be evaluated by the backend<BR>
&nbsp;&nbsp;&nbsp; server<BR>
<BR>
We are using a slew of Virtual Hosts and Seaside normally gets the<BR>
host/ip information from the incoming request, so that's likely to be<BR>
were the odd port is coming from.<BR>
<BR>
Hope this helps,<BR>
<BR>
Dale<BR>
<BR>
John Thornborrow wrote:<BR>
<BR>
&gt; Hi Boris,<BR>
&gt;<BR>
&gt; Yes, that is correct, except the port number it is printing is 9090.<BR>
&gt; So to summarise; Seaside is creating all links(anchors)/redirects with<BR>
&gt; port 9090 instead of using the given port number (if any..) on self<BR>
&gt; preferenceAt: #serverPort put: 80.<BR>
&gt;<BR>
&gt; I shall have a look at what I can learn from a halt/debugit.<BR>
&gt;<BR>
&gt; Cheers,<BR>
&gt; John.<BR>
&gt;<BR>
&gt; www.pinesoft.co.uk<BR>
&gt;<BR>
&gt; Boris Popov wrote:<BR>
&gt;<BR>
&gt;&gt; So if I understand correctly, seaside is printing 8008 right in the<BR>
&gt;&gt; html for you? If so, there's got to be a way to search for all<BR>
&gt;&gt; references to that number in your image to see where it was<BR>
&gt;&gt; configured this way. Normally seaside apps couldn't care less what<BR>
&gt;&gt; internal port numbers they are on as you can have dozens and hundreds<BR>
&gt;&gt; of them, but they do want to know how to render externally accessible<BR>
&gt;&gt; URLs hence the server protocol and port settings. The other simple<BR>
&gt;&gt; way to debug this would be to step though one of the links where they<BR>
&gt;&gt; are being rendred to find where 8008 is coming from.<BR>
&gt;&gt;<BR>
&gt;&gt; Cheers!<BR>
&gt;&gt;<BR>
&gt;&gt; -Boris<BR>
&gt;&gt; (Sent from a BlackBerry)<BR>
&gt;&gt;<BR>
&gt;&gt; ----- Original Message -----<BR>
&gt;&gt; From: seaside-bounces@lists.squeakfoundation.org<BR>
&gt;&gt; &lt;seaside-bounces@lists.squeakfoundation.org&gt;<BR>
&gt;&gt; To: Seaside - general discussion &lt;seaside@lists.squeakfoundation.org&gt;<BR>
&gt;&gt; Sent: Tue Jul 31 07:31:56 2007<BR>
&gt;&gt; Subject: Re: [Seaside] Seaside 2.8 port override not overriding<BR>
&gt;&gt;<BR>
&gt;&gt; Hi Boris,<BR>
&gt;&gt;<BR>
&gt;&gt; I tried this and unfortunately I am getting the same result - i.e. it<BR>
&gt;&gt; has no effect on the outcome.<BR>
&gt;&gt;<BR>
&gt;&gt; Thanks,<BR>
&gt;&gt; John.<BR>
&gt;&gt;<BR>
&gt;&gt; John Thornborrow wrote:<BR>
&gt;&gt;<BR>
&gt;&gt;&gt; Hi Boris, thanks I'll give that a try. Is that on WAKom, or on my<BR>
&gt;&gt;&gt; root component?<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt; John<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt; Boris Popov wrote:<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt;&gt; This works in 2.8 for me on VisualWorks,<BR>
&gt;&gt;&gt;&gt;<BR>
&gt;&gt;&gt;&gt; (self registerAsApplication: 'online')<BR>
&gt;&gt;&gt;&gt;&nbsp; preferenceAt: #serverProtocol put: #http;<BR>
&gt;&gt;&gt;&gt;&nbsp; preferenceAt: #serverPort put: 80;<BR>
&gt;&gt;&gt;&gt;&nbsp; yourself<BR>
&gt;&gt;&gt;&gt;<BR>
&gt;&gt;&gt;&gt; or when deploying,<BR>
&gt;&gt;&gt;&gt;<BR>
&gt;&gt;&gt;&gt; (self registerAsApplication: 'online')<BR>
&gt;&gt;&gt;&gt;&nbsp; preferenceAt: #serverProtocol put: #https;<BR>
&gt;&gt;&gt;&gt;&nbsp; preferenceAt: #serverPort put: 443;<BR>
&gt;&gt;&gt;&gt;&nbsp; yourself<BR>
&gt;&gt;&gt;&gt;<BR>
&gt;&gt;&gt;&gt; Application itself runs on 7777, 7778, etc and is proxied by Apache in<BR>
&gt;&gt;&gt;&gt; front.<BR>
&gt;&gt;&gt;&gt;<BR>
&gt;&gt;&gt;&gt; Hope this helps,<BR>
&gt;&gt;&gt;&gt;<BR>
&gt;&gt;&gt;&gt; Cheers!<BR>
&gt;&gt;&gt;&gt;<BR>
&gt;&gt;&gt;&gt; -Boris<BR>
&gt;&gt;&gt;&gt;<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt; Pinesoft Computers are registered in England, Registered number:<BR>
&gt;&gt;&gt; 2914825. Registered office: 266-268 High Street, Waltham Cross,<BR>
&gt;&gt;&gt; Herts, EN8 7EA<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt; This message has been scanned for viruses by BlackSpider MailControl<BR>
&gt;&gt;&gt; - www.blackspider.com<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt; _______________________________________________<BR>
&gt;&gt;&gt; Seaside mailing list<BR>
&gt;&gt;&gt; Seaside@lists.squeakfoundation.org<BR>
&gt;&gt;&gt; <A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt;<BR>
&gt;&gt; _______________________________________________<BR>
&gt;&gt; Seaside mailing list<BR>
&gt;&gt; Seaside@lists.squeakfoundation.org<BR>
&gt;&gt; <A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>
&gt;&gt;<BR>
&gt;&gt;<BR>
&gt;&gt;&nbsp;<BR>
&gt;&gt;<BR>
&gt;&gt;<BR>
&gt;&gt; ------------------------------------------------------------------------<BR>
&gt;&gt;<BR>
&gt;&gt; _______________________________________________<BR>
&gt;&gt; Seaside mailing list<BR>
&gt;&gt; Seaside@lists.squeakfoundation.org<BR>
&gt;&gt; <A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>
&gt;<BR>
&gt; _______________________________________________<BR>
&gt; Seaside mailing list<BR>
&gt; Seaside@lists.squeakfoundation.org<BR>
&gt; <A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>
&gt;<BR>
<BR>
_______________________________________________<BR>
Seaside mailing list<BR>
Seaside@lists.squeakfoundation.org<BR>
<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>
</FONT>
</P>

</BODY>
</HTML>