Did you read my final comments in thread at:

  http://groups.google.com/group/turbogears/browse_frm/thread/8a5dda7c6cd5ae9f

I never saw an answer from you.

The concern was over what you were calling your TG sub application and
possible problems arising from what you may have set Python module
search path to.

Graham

On Jan 30, 4:03 am, "Lukasz Szybalski" <[EMAIL PROTECTED]> wrote:
> anybody?
>
> On Jan 28, 2008 11:00 PM, Lukasz Szybalski <[EMAIL PROTECTED]> wrote:
>
> > I am getting double baseurl path when I want to execute my app.
>
> > 1.mod_wsgi makes an alias of /myfirstapp /.../.../myapp.wsgi
> > 2. webpath is set to /myfirstapp
>
> > Now my entry point is doubled. It seems as it the entry url now is
> >  duplicated with apache and webpath.
> >  example.com/myfirstapp/myfirstapp/somepage
> >  -----domain-------apache-----webpath--my-apps-page
>
> > This is a problem now because I cannot remove apache alias(because I
> > don't want / mounted app) I cannot remove my  webpath(because my links
> > won't work).
>
> >  So, what is going on here? Why apache WSGIScriptAlias+ webpath
> > represent (/myfirstapp/myfirstapp) and not (/myfirstapp)? Aren't they
> > talking about same path?
>
> > Lucas
>
> > here are some steps I follow to get to this point.....
> > > > Actually there is a weird property with paths.
>
> > > > First: if I set in apache:
>
> > > > WSGIScriptAlias /myfirstapp
> > > > /usr/local/turbogears/myfirstapp/apache/myfirstapp.wsgi
>
> > > > 1. Instead of index I have myfirstapp page.
> > > > That apache config is all I need to access my
> > > > example.com/myfirstapp/myfirstapp
> > > > ---domain-------apache-----myapp
>
> > > >  (no need for webpath) myfistapp page is working properly.
> > > > a)example.com/myfirstapp/myfirstapp accesses my form (good)
> > > > example/com/myfirstapp/ gives me a 404 (good)
> > > > b)BUT now If click 'save' button it redirects me to
> > > > example.com/savemyfirstapp since it doesn't know about baser url!
>
> > > > Weird: I can also access:
> > > > example.com/myfirstapp/myfirstapp
> > > > example.com/myfirstapp/myfirstapp/myfirstapp
> > > > example.com/myfirstapp/myfirstapp/myfirstapp/myfirstapp
>
> > > That I can't comment on. Sounds like a problem with your TG URL
> > > mapping configuration, or see below.
>
> > > > 2. Since my save didn't work, this means that my turbogears app needs
> > > > to know the base url (server.webpath).
> > > > ok. I add this to my myfirstapp.wsgi config file:
> > > > turbogears.config.update({'global': {'server.webpath': '/myfirstapp'}})
>
> > > > weird:
> > > > now my first page doesn't work:
> > > > a)example.com/myfirstapp/myfirstapp (doesn't work)
> > > > b)but example.com/myfirstapp/myfirstapp/myfirstapp page works.???
> > > > -----domain-----------apache-----wsgi-------my-apps-page
> > > > c)my save works properly (good).
>
> > > > This means that webpath is needed internally to get all links working.
> > > > But what about my entry point. It seems as it the entry url now is
> > > > duplicated with apache and webpath.
> > > > example.com/myfirstapp/myfirstapp/myfirstapp
> > > > -----domain-------apache-----wsgi-------my-apps-page
>
> > > > This is a problem now because I cannot remove apache alias(because I
> > > > don't want / mounted app) I cannot remove my wsgi webpath(because my
> > > > links won't work) and I definitely can't remove my apps page(since
> > > > that is the main reason for the app).
>
> > > > So, what is going on here? Why apache WSGIScriptAlias+ webpath
> > > > represent (/myfirstapp/myfirstapp) and not (/myfirstapp)?
> > > > Aren't they talking about same path?
>
> > > > If I am setting something incorrectly please let me know what the
> > > > proper configuration should be?!
>
> > > People on TG list will need to help you out with this.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to