Re: Setting URL for application to just my IP.
Re: Setting URL for application to just my IP.
- Subject: Re: Setting URL for application to just my IP.
- From: Chuck Hill <email@hidden>
- Date: Thu, 2 Mar 2006 09:00:12 -0800
Hi Miguel,
On Mar 2, 2006, at 6:00 AM, Miguel Arroz wrote:
Hi!
Nice! But that only works for the app "front page", right?
Correct.
If you generate an URL with something like:
String url = context().completeURLWithRequestHandlerKey("wa",
directActionName, args, false, 0);
The URL will be a "normal" URL with /cgi-bin/WebObjects/
AppName.woa/etc, right?
Yes. To keep short URLs throughout the application you need to do
two things:
1. Store the session ID and instance number in cookies
2. Generate different URLs
You can avoid (1) if you are willing to have these in the URL too
You can generate URLs with a class dedicated to such generation or
you can use a WOContext subclass. The former is straight forward to
write. Someone (Lenny Marks?) posted an example of the latter a
while ago. I can't locate it now.
Chuck
On 2006/03/02, at 03:44, Chuck Hill wrote:
Using Apache? You can probably do it using an Apache redirect.
Myself, I always use mod_rewrite and a rewrite rule to do this.
Make sure that mod_rewrite is loaded _after_ mod_webobjects if you
are using mod_webobjects:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/$ /cgi-bin/Webobjects/
netBrackets.woa [last,passthrough]
</IfModule>
Chuck
On Mar 1, 2006, at 6:33 PM, Jeffrey Schmitz wrote:
I'd like just my simple domain (http://www.netbrackets.com) to
bring up my application automatically instead of having to add in
all the cgi-bin/Webobjects/... stuff, and without having to do
forwarding on my DNS. I tried using a redirection index.html
page (<meta HTTP-EQUIV="REFRESH" content="0; url=http://
www.netbrackets.com/cgi-bin/Webobjects/netBrackets.woa"> in by
document root directory, but that causes a session timeout
message to come up. Is there another way to do this, perhaps
without having to use a redirection page?
Thanks,
Jeff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Coming in 2006 - an introduction to web applications using
WebObjects and Xcode http://www.global-village.net/wointro
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:
40guiamac.com
This email sent to email@hidden
"GUERRA E' PAZ
LIBERDADE E' ESCRAVIDAO
IGNORANCIA E' FORCA" -- 1984
Miguel Arroz
http://www.ipragma.com
--
Coming in 2006 - an introduction to web applications using WebObjects
and Xcode http://www.global-village.net/wointro
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