Seaside 2.8 port override not overriding

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

Seaside 2.8 port override not overriding

John Thornborrow
I've got an apache proxy for port 80 requests, to redirect to a seaside
application. I.E. http://www.host.com is proxied to
http://www.host.com:9090/seaside/app

Yet every link/action/redirect performed within the application, the
user agent is redirected to http://www.host.com:9090/ which of course
does not work..

I've used the over ride preference option in seaside/config, but it has
no effect.

Can anyone advice please?

John.

www.pinesoft.co.uk


Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA



This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside 2.8 port override not overriding

Michael Gorsuch
On Mon, Jul 30, 2007 at 04:05:59PM +0100, John Thornborrow wrote:
> I've got an apache proxy for port 80 requests, to redirect to a seaside
> application. I.E. http://www.host.com is proxied to
> http://www.host.com:9090/seaside/app
>
> Yet every link/action/redirect performed within the application, the
> user agent is redirected to http://www.host.com:9090/ which of course
> does not work..

Are you doing both a ProxyPass and a ProxyPassReverse via Apache?
You'll need to use both to make sure that things work right.

http://httpd.apache.org/docs/1.3/mod/mod_proxy.html#proxypassreverse

If you are, can you post your config?

Thanks,

Michael Gorsuch
http://www.michaelgorsuch.org
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside 2.8 port override not overriding

John Thornborrow
Sure am..

ProxyRequests Off

<Location /seaside/files>
        ProxyPass http://127.0.0.1:9090/seaside/files/
        ProxyPassReverse http://127.0.0.1:9090/seaside/files/
</Location>

<Location /files>
        ProxyPass http://127.0.0.1:9090/seaside/files/
        ProxyPassReverse http://127.0.0.1:9090/seaside/files/
</Location>

<Location /tinymce>
        ProxyPass !
</Location>

<Location />
        ProxyPass http://127.0.0.1:9090/seaside/fv/
        ProxyPassReverse http://127.0.0.1:9090/seaside/fv/
</Location>

Michael Gorsuch wrote:

> On Mon, Jul 30, 2007 at 04:05:59PM +0100, John Thornborrow wrote:
>> I've got an apache proxy for port 80 requests, to redirect to a seaside
>> application. I.E. http://www.host.com is proxied to
>> http://www.host.com:9090/seaside/app
>>
>> Yet every link/action/redirect performed within the application, the
>> user agent is redirected to http://www.host.com:9090/ which of course
>> does not work..
>
> Are you doing both a ProxyPass and a ProxyPassReverse via Apache?
> You'll need to use both to make sure that things work right.
>
> http://httpd.apache.org/docs/1.3/mod/mod_proxy.html#proxypassreverse
>
> If you are, can you post your config?
>
> Thanks,
>
> Michael Gorsuch
> http://www.michaelgorsuch.org
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>  
>


Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA



This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside 2.8 port override not overriding

Michael Gorsuch
On Mon, Jul 30, 2007 at 04:27:14PM +0100, John Thornborrow wrote:
> Sure am..

What about the base path in the seaside config?  I believe that
will need to be set to allow for seaside to generate the proper urls.

Michael Gorsuch
http://www.michaelgorsuch.org

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside 2.8 port override not overriding

John Thornborrow
Hi, sorry I should have included these things in my initial mail.

I have tried a mix of settings to see if it will change, but what did
work in 2.7 (and no longer in 2.8) was both the base path and base url
to be set to "/" and the port number disregarded (left at default 80)

This is what they are at currently.

I have tried "over riding" the setting with 80 to see if it makes a
difference, but it does not. I've also tried over riding with port 1234,
just to see if it changes anything - which it, too, doesn't.

Thanks once again,
John.

Michael Gorsuch wrote:

> On Mon, Jul 30, 2007 at 04:27:14PM +0100, John Thornborrow wrote:
>> Sure am..
>
> What about the base path in the seaside config?  I believe that
> will need to be set to allow for seaside to generate the proper urls.
>
> Michael Gorsuch
> http://www.michaelgorsuch.org
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>  
>


Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA



This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Seaside 2.8 port override not overriding

Boris Popov, DeepCove Labs (SNN)
This works in 2.8 for me on VisualWorks,

(self registerAsApplication: 'online')
 preferenceAt: #serverProtocol put: #http;
 preferenceAt: #serverPort put: 80;
 yourself

or when deploying,

(self registerAsApplication: 'online')
 preferenceAt: #serverProtocol put: #https;
 preferenceAt: #serverPort put: 443;
 yourself

Application itself runs on 7777, 7778, etc and is proxied by Apache in
front.

Hope this helps,

Cheers!

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: [hidden email] [mailto:seaside-
> [hidden email]] On Behalf Of John Thornborrow
> Sent: Monday, July 30, 2007 9:14 AM
> To: Seaside - general discussion
> Subject: Re: [Seaside] Seaside 2.8 port override not overriding
>
> Hi, sorry I should have included these things in my initial mail.
>
> I have tried a mix of settings to see if it will change, but what did
> work in 2.7 (and no longer in 2.8) was both the base path and base url
> to be set to "/" and the port number disregarded (left at default 80)
>
> This is what they are at currently.
>
> I have tried "over riding" the setting with 80 to see if it makes a
> difference, but it does not. I've also tried over riding with port
1234,

> just to see if it changes anything - which it, too, doesn't.
>
> Thanks once again,
> John.
>
> Michael Gorsuch wrote:
> > On Mon, Jul 30, 2007 at 04:27:14PM +0100, John Thornborrow wrote:
> >> Sure am..
> >
> > What about the base path in the seaside config?  I believe that
> > will need to be set to allow for seaside to generate the proper
urls.

> >
> > Michael Gorsuch
> > http://www.michaelgorsuch.org
> >
> > _______________________________________________
> > Seaside mailing list
> > [hidden email]
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> >
> >
> >
>
>
> Pinesoft Computers are registered in England, Registered number:
2914825.

> Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA
>
>
>
> This message has been scanned for viruses by BlackSpider MailControl -
> www.blackspider.com
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside 2.8 port override not overriding

John Thornborrow
Hi Boris, thanks I'll give that a try. Is that on WAKom, or on my root
component?

John

Boris Popov wrote:

> This works in 2.8 for me on VisualWorks,
>
> (self registerAsApplication: 'online')
>  preferenceAt: #serverProtocol put: #http;
>  preferenceAt: #serverPort put: 80;
>  yourself
>
> or when deploying,
>
> (self registerAsApplication: 'online')
>  preferenceAt: #serverProtocol put: #https;
>  preferenceAt: #serverPort put: 443;
>  yourself
>
> Application itself runs on 7777, 7778, etc and is proxied by Apache in
> front.
>
> Hope this helps,
>
> Cheers!
>
> -Boris
>


Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA



This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside 2.8 port override not overriding

Boris Popov, DeepCove Labs (SNN)
In reply to this post by John Thornborrow
Re: [Seaside] Seaside 2.8 port override not overriding

Your root.

Cheers!

-Boris
(Sent from a BlackBerry)

----- Original Message -----
From: [hidden email] <[hidden email]>
To: Seaside - general discussion <[hidden email]>
Sent: Tue Jul 31 05:49:55 2007
Subject: Re: [Seaside] Seaside 2.8 port override not overriding

Hi Boris, thanks I'll give that a try. Is that on WAKom, or on my root
component?

John

Boris Popov wrote:
> This works in 2.8 for me on VisualWorks,
>
> (self registerAsApplication: 'online')
>  preferenceAt: #serverProtocol put: #http;
>  preferenceAt: #serverPort put: 80;
>  yourself
>
> or when deploying,
>
> (self registerAsApplication: 'online')
>  preferenceAt: #serverProtocol put: #https;
>  preferenceAt: #serverPort put: 443;
>  yourself
>
> Application itself runs on 7777, 7778, etc and is proxied by Apache in
> front.
>
> Hope this helps,
>
> Cheers!
>
> -Boris
>


Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA



This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside 2.8 port override not overriding

John Thornborrow
In reply to this post by John Thornborrow
Hi Boris,

I tried this and unfortunately I am getting the same result - i.e. it
has no effect on the outcome.

Thanks,
John.

John Thornborrow wrote:

> Hi Boris, thanks I'll give that a try. Is that on WAKom, or on my root
> component?
>
> John
>
> Boris Popov wrote:
>> This works in 2.8 for me on VisualWorks,
>>
>> (self registerAsApplication: 'online')
>>  preferenceAt: #serverProtocol put: #http;
>>  preferenceAt: #serverPort put: 80;
>>  yourself
>>
>> or when deploying,
>>
>> (self registerAsApplication: 'online')
>>  preferenceAt: #serverProtocol put: #https;
>>  preferenceAt: #serverPort put: 443;
>>  yourself
>>
>> Application itself runs on 7777, 7778, etc and is proxied by Apache in
>> front.
>>
>> Hope this helps,
>>
>> Cheers!
>>
>> -Boris
>>
>
>
> Pinesoft Computers are registered in England, Registered number:
> 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts,
> EN8 7EA
>
>
>
> This message has been scanned for viruses by BlackSpider MailControl -
> www.blackspider.com
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside 2.8 port override not overriding

Boris Popov, DeepCove Labs (SNN)
In reply to this post by John Thornborrow
Re: [Seaside] Seaside 2.8 port override not overriding

So if I understand correctly, seaside is printing 8008 right in the html for you? If so, there's got to be a way to search for all references to that number in your image to see where it was configured this way. Normally seaside apps couldn't care less what internal port numbers they are on as you can have dozens and hundreds of them, but they do want to know how to render externally accessible URLs hence the server protocol and port settings. The other simple way to debug this would be to step though one of the links where they are being rendred to find where 8008 is coming from.

Cheers!

-Boris
(Sent from a BlackBerry)

----- Original Message -----
From: [hidden email] <[hidden email]>
To: Seaside - general discussion <[hidden email]>
Sent: Tue Jul 31 07:31:56 2007
Subject: Re: [Seaside] Seaside 2.8 port override not overriding

Hi Boris,

I tried this and unfortunately I am getting the same result - i.e. it
has no effect on the outcome.

Thanks,
John.

John Thornborrow wrote:
> Hi Boris, thanks I'll give that a try. Is that on WAKom, or on my root
> component?
>
> John
>
> Boris Popov wrote:
>> This works in 2.8 for me on VisualWorks,
>>
>> (self registerAsApplication: 'online')
>>  preferenceAt: #serverProtocol put: #http;
>>  preferenceAt: #serverPort put: 80;
>>  yourself
>>
>> or when deploying,
>>
>> (self registerAsApplication: 'online')
>>  preferenceAt: #serverProtocol put: #https;
>>  preferenceAt: #serverPort put: 443;
>>  yourself
>>
>> Application itself runs on 7777, 7778, etc and is proxied by Apache in
>> front.
>>
>> Hope this helps,
>>
>> Cheers!
>>
>> -Boris
>>
>
>
> Pinesoft Computers are registered in England, Registered number:
> 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts,
> EN8 7EA
>
>
>
> This message has been scanned for viruses by BlackSpider MailControl -
> www.blackspider.com
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside 2.8 port override not overriding

John Thornborrow
Hi Boris,

Yes, that is correct, except the port number it is printing is 9090. So
to summarise; Seaside is creating all links(anchors)/redirects with port
9090 instead of using the given port number (if any..) on self
preferenceAt: #serverPort put: 80.

I shall have a look at what I can learn from a halt/debugit.

Cheers,
John.

www.pinesoft.co.uk

Boris Popov wrote:

> So if I understand correctly, seaside is printing 8008 right in the html for you? If so, there's got to be a way to search for all references to that number in your image to see where it was configured this way. Normally seaside apps couldn't care less what internal port numbers they are on as you can have dozens and hundreds of them, but they do want to know how to render externally accessible URLs hence the server protocol and port settings. The other simple way to debug this would be to step though one of the links where they are being rendred to find where 8008 is coming from.
>
> Cheers!
>
> -Boris
> (Sent from a BlackBerry)
>
> ----- Original Message -----
> From: [hidden email] <[hidden email]>
> To: Seaside - general discussion <[hidden email]>
> Sent: Tue Jul 31 07:31:56 2007
> Subject: Re: [Seaside] Seaside 2.8 port override not overriding
>
> Hi Boris,
>
> I tried this and unfortunately I am getting the same result - i.e. it
> has no effect on the outcome.
>
> Thanks,
> John.
>
> John Thornborrow wrote:
>> Hi Boris, thanks I'll give that a try. Is that on WAKom, or on my root
>> component?
>>
>> John
>>
>> Boris Popov wrote:
>>> This works in 2.8 for me on VisualWorks,
>>>
>>> (self registerAsApplication: 'online')
>>>  preferenceAt: #serverProtocol put: #http;
>>>  preferenceAt: #serverPort put: 80;
>>>  yourself
>>>
>>> or when deploying,
>>>
>>> (self registerAsApplication: 'online')
>>>  preferenceAt: #serverProtocol put: #https;
>>>  preferenceAt: #serverPort put: 443;
>>>  yourself
>>>
>>> Application itself runs on 7777, 7778, etc and is proxied by Apache in
>>> front.
>>>
>>> Hope this helps,
>>>
>>> Cheers!
>>>
>>> -Boris
>>>
>>
>> Pinesoft Computers are registered in England, Registered number:
>> 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts,
>> EN8 7EA
>>
>>
>>
>> This message has been scanned for viruses by BlackSpider MailControl -
>> www.blackspider.com
>>
>> _______________________________________________
>> Seaside mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>>
>>
>>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>  
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside 2.8 port override not overriding

Dale
John,

This may or may not be relevant, but for GemStone we set
ProxyPreserveHost On. From the Apache docs:

    This option should normally be turned |Off|. It is mostly useful in
    special configurations like proxied mass name-based virtual hosting,
    where the original Host header needs to be evaluated by the backend
    server

We are using a slew of Virtual Hosts and Seaside normally gets the
host/ip information from the incoming request, so that's likely to be
were the odd port is coming from.

Hope this helps,

Dale

John Thornborrow wrote:

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

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside 2.8 port override not overriding

Boris Popov, DeepCove Labs (SNN)
In reply to this post by John Thornborrow
Re: [Seaside] Seaside 2.8 port override not overriding

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.

Cheers!

-Boris
(Sent from a BlackBerry)

----- Original Message -----
From: [hidden email] <[hidden email]>
To: Seaside - general discussion <[hidden email]>
Sent: Tue Jul 31 08:17:11 2007
Subject: Re: [Seaside] Seaside 2.8 port override not overriding

John,

This may or may not be relevant, but for GemStone we set
ProxyPreserveHost On. From the Apache docs:

    This option should normally be turned |Off|. It is mostly useful in
    special configurations like proxied mass name-based virtual hosting,
    where the original Host header needs to be evaluated by the backend
    server

We are using a slew of Virtual Hosts and Seaside normally gets the
host/ip information from the incoming request, so that's likely to be
were the odd port is coming from.

Hope this helps,

Dale

John Thornborrow wrote:

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

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Seaside 2.8 port override not overriding

Boris Popov, DeepCove Labs (SNN)
More specifically,

http://tinyurl.com/yyc8oz

which points to,

http://leftshore.wordpress.com/2006/10/27/hint-setting-up-apache-proxy-f
or-your-seaside-host/

Cheers,

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: [hidden email] [mailto:seaside-
> [hidden email]] On Behalf Of Boris Popov
> Sent: Tuesday, July 31, 2007 8:20 AM
> To: [hidden email]
> Subject: Re: [Seaside] Seaside 2.8 port override not overriding
>
> 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.
>
> Cheers!
>
> -Boris
> (Sent from a BlackBerry)
>
> ----- Original Message -----
> From: [hidden email] <seaside-
> [hidden email]>
> To: Seaside - general discussion <[hidden email]>
> Sent: Tue Jul 31 08:17:11 2007
> Subject: Re: [Seaside] Seaside 2.8 port override not overriding
>
> John,
>
> This may or may not be relevant, but for GemStone we set
> ProxyPreserveHost On. From the Apache docs:
>
>     This option should normally be turned |Off|. It is mostly useful
in
>     special configurations like proxied mass name-based virtual
hosting,
>     where the original Host header needs to be evaluated by the
backend

>     server
>
> We are using a slew of Virtual Hosts and Seaside normally gets the
> host/ip information from the incoming request, so that's likely to be
> were the odd port is coming from.
>
> Hope this helps,
>
> Dale
>
> John Thornborrow wrote:
>
> > Hi Boris,
> >
> > Yes, that is correct, except the port number it is printing is 9090.
> > So to summarise; Seaside is creating all links(anchors)/redirects
with

> > port 9090 instead of using the given port number (if any..) on self
> > preferenceAt: #serverPort put: 80.
> >
> > I shall have a look at what I can learn from a halt/debugit.
> >
> > Cheers,
> > John.
> >
> > www.pinesoft.co.uk
> >
> > Boris Popov wrote:
> >
> >> So if I understand correctly, seaside is printing 8008 right in the
> >> html for you? If so, there's got to be a way to search for all
> >> references to that number in your image to see where it was
> >> configured this way. Normally seaside apps couldn't care less what
> >> internal port numbers they are on as you can have dozens and
hundreds
> >> of them, but they do want to know how to render externally
accessible
> >> URLs hence the server protocol and port settings. The other simple
> >> way to debug this would be to step though one of the links where
they

> >> are being rendred to find where 8008 is coming from.
> >>
> >> Cheers!
> >>
> >> -Boris
> >> (Sent from a BlackBerry)
> >>
> >> ----- Original Message -----
> >> From: [hidden email]
> >> <[hidden email]>
> >> To: Seaside - general discussion
<[hidden email]>
> >> Sent: Tue Jul 31 07:31:56 2007
> >> Subject: Re: [Seaside] Seaside 2.8 port override not overriding
> >>
> >> Hi Boris,
> >>
> >> I tried this and unfortunately I am getting the same result - i.e.
it

> >> has no effect on the outcome.
> >>
> >> Thanks,
> >> John.
> >>
> >> John Thornborrow wrote:
> >>
> >>> Hi Boris, thanks I'll give that a try. Is that on WAKom, or on my
> >>> root component?
> >>>
> >>> John
> >>>
> >>> Boris Popov wrote:
> >>>
> >>>> This works in 2.8 for me on VisualWorks,
> >>>>
> >>>> (self registerAsApplication: 'online')
> >>>>  preferenceAt: #serverProtocol put: #http;
> >>>>  preferenceAt: #serverPort put: 80;
> >>>>  yourself
> >>>>
> >>>> or when deploying,
> >>>>
> >>>> (self registerAsApplication: 'online')
> >>>>  preferenceAt: #serverProtocol put: #https;
> >>>>  preferenceAt: #serverPort put: 443;
> >>>>  yourself
> >>>>
> >>>> Application itself runs on 7777, 7778, etc and is proxied by
Apache

> in
> >>>> front.
> >>>>
> >>>> Hope this helps,
> >>>>
> >>>> Cheers!
> >>>>
> >>>> -Boris
> >>>>
> >>>
> >>> Pinesoft Computers are registered in England, Registered number:
> >>> 2914825. Registered office: 266-268 High Street, Waltham Cross,
> >>> Herts, EN8 7EA
> >>>
> >>>
> >>>
> >>> This message has been scanned for viruses by BlackSpider
MailControl

> >>> - www.blackspider.com
> >>>
> >>> _______________________________________________
> >>> Seaside mailing list
> >>> [hidden email]
> >>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >>>
> >>>
> >>>
> >>>
> >> _______________________________________________
> >> Seaside mailing list
> >> [hidden email]
> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >>
> >>
> >>
> >>
> >>
> >>
-----------------------------------------------------------------------

> -
> >>
> >> _______________________________________________
> >> Seaside mailing list
> >> [hidden email]
> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> > _______________________________________________
> > Seaside mailing list
> > [hidden email]
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside 2.8 port override not overriding

John Thornborrow
In reply to this post by Dale
Yes, that did it!

Many thanks for the help,

John
www.pinesoft.co.uk

Dale Henrichs wrote:

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