On Feb 14, 2011, at 11:53 AM, Gennady Kushnir wrote:

> As I remember, WO uses -WOHost runtime environment variable to form such urls.

WOHost is used for communications with wotaskd.  The variable you are thinking 
of is WOCGIAdaptorURL

See
http://developer.apple.com/legacy/mac/library/#documentation/WebObjects/WOAppProperties/Articles/ApplicationProperties.html%23//apple_ref/doc/uid/TP40005337-SW1


> As to me, I use my own method to form secure URLs depending on client IP.
> Maybe Wonder offers some hook for that, let's wait for other replies.

If you are using Wonder, it should be taking this from the headers sent by 
Apache, so it could indeed be an Apache config problem.  See ERXRequest:

    protected static final NSArray<String> HOST_NAME_KEYS = new 
NSArray<String>(new String[]{"x-forwarded-host", "Host", 
"x-webobjects-server-name", "server_name", "http_host"});



Chuck



> 
> 2011/2/14 Christoph Wick <[email protected]>:
>> Hi John, thanks for your hint.
>> 
>> Unfortunately the apache config is not the problem here, but it is 
>> WebObjects (or Wonder) that puts the IP-Addresses into the URL if you are 
>> using HTTPS.
>> 
>> What I need are relativ URLs (without IPs), because the app shall be 
>> accessible from both, before and behind the firewall.
>> 
>> C.U.CW
>> --
>> Christoph Wick                        Director Software Development
>> STAR Healthcare Management GmbH, Pierstr. 8, 50997 Cologne, Germany
>> Fon:+49 2236 33665-50 Fax:+49 2236 33665-90 www.starhealthcare.info
>> -------------------------------------------------------------------
>>  Sitz der Gesellschaft: Köln, Amtsgericht Köln, Reg.Nr.: HRB 55306
>> 
>> 
>> 
>> 
>> On 14.02.2011, at 16:13, John Huss wrote:
>> 
>>> This is determined by the ServerName setting in apache, which is probably 
>>> not matching your regular (http) settings.
>>> 
>>> John
>>> 
>>> On Mon, Feb 14, 2011 at 7:30 AM, Christoph Wick <[email protected]> wrote:
>>> Hi there,
>>> 
>>> one of my clients runs a WO application on a Linux box behind a firewall. 
>>> The internal IP of the box is e.g. 192.168.1.100. The external IP (through 
>>> the firewall) is e.g. 1.2.3.4.
>>> 
>>> Running the app using HTTP is no problem, since all Link-URLs are built as 
>>> URIs only, e.g. <a href="/cgi-bin/WebObjects/App.woa/...">
>>> 
>>> But if we use HTTPS, the Link-URLs are built as full URLs using the 
>>> internal IP address, e.g. <a 
>>> href="https://192.168.1.100/cgi-bin/WebObjects/App.woa/...";>
>>> 
>>> Links like this are - obviously - not accessable through the firewall.
>>> Any ideas? A magic switch in Wonder, I was missing ...
>>> 
>>> Thx,
>>> C.U.CW
>>> --
>>> Christoph Wick                        Director Software Development
>>> STAR Healthcare Management GmbH, Pierstr. 8, 50997 Cologne, Germany
>>> Fon:+49 2236 33665-50 Fax:+49 2236 33665-90 www.starhealthcare.info
>>> -------------------------------------------------------------------
>>>  Sitz der Gesellschaft: Köln, Amtsgericht Köln, Reg.Nr.: HRB 55306
>>> 
>>> 
>>> 
>>> 
>>> 
>>>  _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list      ([email protected])
>>> Help/Unsubscribe/Update your Subscription:
>>> http://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
>>> 
>>> This email sent to [email protected]
>>> 
>> 
>> 
>>  _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/genkush%40rujel.net
>> 
>> This email sent to [email protected]
>> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> 
> This email sent to [email protected]

-- 
Chuck Hill             Senior Consultant / VP Development

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







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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to