Re: Deployment question: WO puts IP address in URL when using HTTPS
Re: Deployment question: WO puts IP address in URL when using HTTPS
- Subject: Re: Deployment question: WO puts IP address in URL when using HTTPS
- From: Chuck Hill <email@hidden>
- Date: Mon, 14 Feb 2011 12:01:03 -0800
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#//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@hidden>:
>> 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@hidden> 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@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>>>
>>
>>
>> _______________________________________________
>> 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
>>
> _______________________________________________
> 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
--
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden