On Thu, Jul 23, 2009 at 3:26 PM, Olemis Lang <[email protected]> wrote:

>
> On Thu, Jul 23, 2009 at 1:06 PM, Leonardo Santagada<[email protected]>
> wrote:
> >
> >
> > On Thu, Jul 23, 2009 at 2:45 PM, Olemis Lang <[email protected]> wrote:
> >>
> >> Hello !
> >>
> >> I'd like to try TracWsgi plugin but there's something I dont understand
> :
> >>
> >>  - Does it work with any HTTP server ?
> >
> > Yes. Theres mod_wsgi for apache and ngix and FastCGI for those http
> servers
> > and others
> >
>
> So this means that I cannot use Trac on top of `mod_python` and then
> run the WSGI app on top of Trac. Isn't it?
>
> I forgot to mention something here . I want to run an app inside Trac
> URL space, not Trac using PasteDeploy script ... ;)
>
> Here I'd like to know something. How does it work ? The two
> alternatives I have in mind are the following :
>
> - The plugin acts as a wrapper and uses the Trac web context to
> «rewrite» the WSGI environment used to run the «inner» app .
>
> - The hosted app is run by the app server directly.
>
> Which one is correct ? With my eyes closed I thought it was the first
> one and in this case I supposed that only trac.ini had to be modified,
> but I'm not sure.
>
> Ahhhh !  I assume that I need PasteDeploy . Is it correct ?
>
> >>
> >>  - I mean, suppose I've installed and setup Trac already : The only
> >> thing I need to do
> >>    in order to run a WSGI app is to modify `trac.ini` by including
> >> PasteDeploy config
> >>    options ? Should I do anything else ?
> >
> > configure your http server for serving a wsgi app.
> >
>
> Well is it when Trac is deployed using PasteDeploy, or when the plugin
> is used to run WSGI apps inside Trac, or both ? (yes I didnt say what
> I wanted to do before :-/ )
>

I never used this plugin in particular, but if I read the documentation
corretly it does two thing, serve trac as a wsgi app (which can be done
without a plugin) and permits wsgi apps to be served in the same urlspace as
trac. Probably its easy to find in the code how it does this, my guess would
be that it redirect requests from trac otherwise it wouldn't need to be a
trac plugin, but I'm only guessing.

-- 
Leonardo Santagada

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" 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/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to