Re: Using WebObjects with Virtual Hosting
Re: Using WebObjects with Virtual Hosting
- Subject: Re: Using WebObjects with Virtual Hosting
- From: David Griffith <email@hidden>
- Date: Wed, 18 Aug 2004 17:02:10 +0200
Ok, so if I have two Virtual Hosts setup and I want images to be loaded from
the images directory in the folder for Host1, can I use a relative reference
in WO to generate the image source?
Anytime I try and use, for example:
/images/imagename.jpg
It tries to load the image from:
http://www.host1.com/cgi-bin/WebObjects/Host1.woa/contents/WebServerResource
s
But of course the images are at:
http://www.host1.com/images/
However if I use an absolute reference in WO, then I have a problem when
using SSL on a page which can have SSL on or off. If it's on, then the
image sources are not secure.
It's also not very easy to change the domain name etc in the future.
I can't get any images to appear in JavaMonitor either (no matter what I
do!) when accessing it by:
http://www.host1.com/cgi-bin/WebObjects/JavaMonitor
Anyone that can shed some light on this, I'd really appreciate it.
All I really want (I don't have many images actually local to the
application package) is to be able to refer to images using a relative
reference that will actually be relative to the Virtual Hosts root, rather
than the application package.
Regards,
Dave.
> Thx a lot for all your prompt response.
>
>
>
>
>
> On Aug 17, 2004, at 12:11 PM, Randall Perry wrote:
>
>> The IP is irrelevant as WO apps run as cgi. Any IP (setup as an httpd
>> virtual host) + the WO cgi path will connect to the desired app:
>> http://www.mywoapp.org/cgi-bin/WebObjects/MYWOAPP.woa/wa/
>> http://www.davita.com/cgi-bin/WebObjects/MYWOAPP.woa/wa/
>>
>>
>>> Hi,
>>>
>>> I was wondering if someone could either tell me or direct me to some
>>> documentation regarding deploying WO
>>> on Name-based virtual Host on OS X Panther Server.
>>>
>>> Since virtual hosting uses the same IP address, if I need to use Java
>>> Monitor, where do i set this up.
>>>
>>> Thx a lot.
>>>
>>>
>>> DaVita Inc.
>>> _______________________________________________
>>> webobjects-dev mailing list | email@hidden
>>> Help/Unsubscribe/Archives:
>>> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>>> Do not post admin requests to the list. They will be ignored.
>>
>> --
>> Randall Perry
>> sysTame
>>
>> Xserve Web Hosting/Co-location
>> Website Design/Development
>> WebObjects Hosting
>> Mac Consulting/Sales
>>
>> http://www.systame.com/
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.