Root application problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Root application problem

John Thornborrow
Hi all,

I'm trying to configure one of my seaside apps to be the root appliation
(i.e. http://www.myhost.com will load my application, instead having to
navigate to http://www.myhost.com/seaside/myapp)

I've been using the configuration page to update the base-path to '/'
yet when I try to view the root, I still get "Error: "/" not found" but
at the same time, the links/paths are all updated to reflect the change
- such as the control bar when in debug mode, they are all pointing to
"http://www.myhost.com/?_k=xxx&_s=yyy"

I'm not even sure I know where to begin to start debugging this, so does
anyone know if this is an easy/common fix?

Thanks,
John

www.pinesoft.co.uk


Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA



This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Root application problem

jgfoster
Hi John,

I made a change in WADispatcher>>handlerForRequest:relativeTo: that solved a
similar problem for me. About six lines down, modify the line to look like
the following:

  (relativePath notEmpty and: [true "relativePath first = $/"]) ifTrue:

I'd be interested in comments from others on this "fix".

James Foster

> -----Original Message-----
> From: [hidden email] [mailto:seaside-
> [hidden email]] On Behalf Of John Thornborrow
> Sent: Monday, April 23, 2007 7:35 AM
> To: [hidden email]
> Subject: [Seaside] Root application problem
>
> Hi all,
>
> I'm trying to configure one of my seaside apps to be the root appliation
> (i.e. http://www.myhost.com will load my application, instead having to
> navigate to http://www.myhost.com/seaside/myapp)
>
> I've been using the configuration page to update the base-path to '/'
> yet when I try to view the root, I still get "Error: "/" not found" but
> at the same time, the links/paths are all updated to reflect the change
> - such as the control bar when in debug mode, they are all pointing to
> "http://www.myhost.com/?_k=xxx&_s=yyy"
>
> I'm not even sure I know where to begin to start debugging this, so does
> anyone know if this is an easy/common fix?
>
> Thanks,
> John
>
> www.pinesoft.co.uk
>
>
> Pinesoft Computers are registered in England, Registered number: 2914825.
> Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA
>
>
>
> This message has been scanned for viruses by BlackSpider MailControl -
> www.blackspider.com
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Root application problem

Lukas Renggli
In reply to this post by John Thornborrow
> I've been using the configuration page to update the base-path to '/'
> yet when I try to view the root, I still get "Error: "/" not found" but
> at the same time, the links/paths are all updated to reflect the change
> - such as the control bar when in debug mode, they are all pointing to
> "http://www.myhost.com/?_k=xxx&_s=yyy"

The settings Resource Base Url, Server Hostname, Server Path (former
base path), Server Port and Server Protocol does only change the way
absolute URLs are generated and does not and is not supposed to affect
the lookup. Usually Apache rewrite rules (or a custom Kom setup) is
used to achieve that.

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Root application problem

John Thornborrow
Lukas Renggli wrote:

>> I've been using the configuration page to update the base-path to '/'
>> yet when I try to view the root, I still get "Error: "/" not found" but
>> at the same time, the links/paths are all updated to reflect the change
>> - such as the control bar when in debug mode, they are all pointing to
>> "http://www.myhost.com/?_k=xxx&_s=yyy"
>
> The settings Resource Base Url, Server Hostname, Server Path (former
> base path), Server Port and Server Protocol does only change the way
> absolute URLs are generated and does not and is not supposed to affect
> the lookup. Usually Apache rewrite rules (or a custom Kom setup) is
> used to achieve that.
>
> Cheers,
> Lukas
>
Ok, thanks for clarification - I took the information from here:
http://lists.squeakfoundation.org/pipermail/seaside/2006-February/006932.html

thanks James, I'll give that a go.


John

www.pinesoft.co.uk


Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA



This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside