On Wednesday 16 January 2008 15:30:29 Lukasz Szybalski wrote:
> On Jan 16, 2008 3:58 AM, Jorge Godoy <[EMAIL PROTECTED]> wrote:
> > Em Wednesday 16 January 2008 01:11:10 Lukasz Szybalski escreveu:
> > > Hello,
> > > As I write new apps in turbogears and then upload them to the server,
> > > I am starting to run into problems like which /static content am I
> > > suppose to be using and how?
> >
> > Each application has its own /static.  You can have a more generic one if
> > you want to share things.
> >
> > Also note that TG's /static (such as to load MochiKit) is shared among
> > all applications.
> >
> > > So right now I have 4 turbogears apps working on my server. The first
> > > app uses apache /static/ which proxies to my some port 8080/static/ .
> > > Well now my second app needs to use /static/ and what I did is to move
> > > the new images/css to my first app
> > > /usr/lib/python2.4/site-packages/myfirstapp-1.0-py2.4.egg/myfirstapp/st
> > >atic
> >
> > All apps on the same domain and same path?  If not, you answered your
> > doubt: proxy /path1/static to one app, /path2/static to another and so
> > on.
>
> The problem with tg apps is that they don't have the /path2/static
> they have /static
> so my apache config has:
>
> ProxyPass /static/ http://127.0.0.1:8081/static/
> then second app would have:
> ProxyPass /static/ http://127.0.0.1:8082/static/
> third:
> ProxyPass /static/ http://127.0.0.1:8083/static/
> etc.....

I'm not an apache expert - but shouldn't virtual servers and 
mod_proxy/mod_rewrite take care about this? How are the apps accessed from 
the outside, is there any reason why

website_one.com/static 

gets translated to 

 http://127.0.0.1:8081/static/

and so forth?

Diez

--~--~---------~--~----~------------~-------~--~----~
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