<!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 <seaside-bounces@lists.squeakfoundation.org><BR>
To: Seaside - general discussion <seaside@lists.squeakfoundation.org><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>
This option should normally be turned |Off|. It is mostly useful in<BR>
special configurations like proxied mass name-based virtual hosting,<BR>
where the original Host header needs to be evaluated by the backend<BR>
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>
> Hi Boris,<BR>
><BR>
> Yes, that is correct, except the port number it is printing is 9090.<BR>
> So to summarise; Seaside is creating all links(anchors)/redirects with<BR>
> port 9090 instead of using the given port number (if any..) on self<BR>
> preferenceAt: #serverPort put: 80.<BR>
><BR>
> I shall have a look at what I can learn from a halt/debugit.<BR>
><BR>
> Cheers,<BR>
> John.<BR>
><BR>
> www.pinesoft.co.uk<BR>
><BR>
> Boris Popov wrote:<BR>
><BR>
>> So if I understand correctly, seaside is printing 8008 right in the<BR>
>> html for you? If so, there's got to be a way to search for all<BR>
>> references to that number in your image to see where it was<BR>
>> configured this way. Normally seaside apps couldn't care less what<BR>
>> internal port numbers they are on as you can have dozens and hundreds<BR>
>> of them, but they do want to know how to render externally accessible<BR>
>> URLs hence the server protocol and port settings. The other simple<BR>
>> way to debug this would be to step though one of the links where they<BR>
>> are being rendred to find where 8008 is coming from.<BR>
>><BR>
>> Cheers!<BR>
>><BR>
>> -Boris<BR>
>> (Sent from a BlackBerry)<BR>
>><BR>
>> ----- Original Message -----<BR>
>> From: seaside-bounces@lists.squeakfoundation.org<BR>
>> <seaside-bounces@lists.squeakfoundation.org><BR>
>> To: Seaside - general discussion <seaside@lists.squeakfoundation.org><BR>
>> Sent: Tue Jul 31 07:31:56 2007<BR>
>> Subject: Re: [Seaside] Seaside 2.8 port override not overriding<BR>
>><BR>
>> Hi Boris,<BR>
>><BR>
>> I tried this and unfortunately I am getting the same result - i.e. it<BR>
>> has no effect on the outcome.<BR>
>><BR>
>> Thanks,<BR>
>> John.<BR>
>><BR>
>> John Thornborrow wrote:<BR>
>><BR>
>>> Hi Boris, thanks I'll give that a try. Is that on WAKom, or on my<BR>
>>> root component?<BR>
>>><BR>
>>> John<BR>
>>><BR>
>>> Boris Popov wrote:<BR>
>>><BR>
>>>> This works in 2.8 for me on VisualWorks,<BR>
>>>><BR>
>>>> (self registerAsApplication: 'online')<BR>
>>>> preferenceAt: #serverProtocol put: #http;<BR>
>>>> preferenceAt: #serverPort put: 80;<BR>
>>>> yourself<BR>
>>>><BR>
>>>> or when deploying,<BR>
>>>><BR>
>>>> (self registerAsApplication: 'online')<BR>
>>>> preferenceAt: #serverProtocol put: #https;<BR>
>>>> preferenceAt: #serverPort put: 443;<BR>
>>>> yourself<BR>
>>>><BR>
>>>> Application itself runs on 7777, 7778, etc and is proxied by Apache in<BR>
>>>> front.<BR>
>>>><BR>
>>>> Hope this helps,<BR>
>>>><BR>
>>>> Cheers!<BR>
>>>><BR>
>>>> -Boris<BR>
>>>><BR>
>>><BR>
>>> Pinesoft Computers are registered in England, Registered number:<BR>
>>> 2914825. Registered office: 266-268 High Street, Waltham Cross,<BR>
>>> Herts, EN8 7EA<BR>
>>><BR>
>>><BR>
>>><BR>
>>> This message has been scanned for viruses by BlackSpider MailControl<BR>
>>> - www.blackspider.com<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>
>>><BR>
>>><BR>
>>><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>
>><BR>
>><BR>
>> <BR>
>><BR>
>><BR>
>> ------------------------------------------------------------------------<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>
><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>
><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>