Re: "server_port" header is always "0" - SOLVED
Re: "server_port" header is always "0" - SOLVED
- Subject: Re: "server_port" header is always "0" - SOLVED
- From: "Mr. Pierre Frisch" <email@hidden>
- Date: Thu, 17 Jan 2008 07:06:54 -0800
Thank you
Pierre
--
Pierre Frisch
email@hidden
On Jan 17, 2008, at 3:24, James Brook wrote:
On 16 Jan 2008, at 20:35, Mr. Pierre Frisch wrote:
Bug report please.
My first bug report: Bug ID# 5692304.
In answer to Mike's question, this is the same bug that Anjo would
have mentioned to you. I will submit a patch to Wonder.
--
James
Pierre
--
Pierre Frisch
email@hidden
On Jan 16, 2008, at 9:34, James Brook wrote:
This did turn out to be a problem with the Apache 2.2 adaptor (both
the Apple and the Wonder one). In case anyone needs it, I have
attached a patch for the Apple 2.2 adaptor that seems to fix the
problem. I am not sure how one goes about submitting a patch to
Apple.
<AppleAdaptorPatch.txt>
To get it to compile as a fat binary (some Macs run Apache under a
64 bit architecture), I added the following to make.config:
LDFLAGS = -arch x86_64 -arch ppc64 -arch ppc -arch i386
The same code change works for the Wonder adaptor. I will submit a
patch for that to the developers as soon as I have time and have
worked out how to compile it for x86_64.
--
James
On 15 Jan 2008, at 10:24, James Brook wrote:
Unfortunately not. I am pretty sure that the adaptor normally sets
this header based on an Apache environment variable (or in the past
the x-webobjects-server-port header was set). Everyone on the team
using Apache 2.2 and the WO 5.4 adaptor gets a value of zero. Those
who haven't upgraded get the correct port.
I really need the port to find out whether or not requests are SSL
so that I can redirect appropriately. The plan is for a hardware
SSL accelerator/offloader to pass offloaded SSL requests on to port
81.
I will try the Wonder adaptor and experiment with Apache variables.
--
James
On 15 Jan 2008, at 03:01, Chuck Hill wrote:
Check the other headers, it might be there under a new name.
Chuck
On Jan 14, 2008, at 10:33 AM, James Brook wrote:
No matter what I do, my application always reports that the value
of the "server_port" header is "0". I am running WebObjects 5.3
on Leopard, with the latest version of Wonder and using Apache
2.2 and the adaptor that ships with WO 5.4. Has anyone run into
this?
I suspect an adaptor problem. When I debug createRequest I see
that the "0" value is already set for the header there. Are
people using the 5.4 adaptor with Apache 2.2 and WO 5.3? Should I
switch to the Wonder 2.2 adaptor or Apache 1.3?
I would appreciate any help.
--
James
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
lage.net
This email sent to email@hidden
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve
specific problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
<winmail.dat>
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden