> In mod_wsgi, if you want Apache to serve up static files instead, so
> that things are more effecient, then would use:
>
>   Alias /static /some/path/to/dir/static
>
>   <Directory /some/path/to/dir/static>
>   Order Allow,Deny
>   Allow from All
>   </Directory>
>
> The Alias directive should appear before the WSGIScriptAlias directive
> in the Apache configuration.
>
> That directory and the files in it would need to be readable to user
> that Apache runs as.
> For more about static file serving see section 'Hosting Of Static Files' of:
>
>   http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines
>
> It would be a good idea to read through the whole of that document as
> explains various other configurations as well and may help to explain
> things a bit better if you haven't already read it.

I read over the documentation but it seemed to much at one time so
these emails are really helping me to get the whole picture on
mod_wsgi configuration.

Lets talk folders.
- It seems as /var/www/myfirstapp is an optimal solution for folder choice.
- Since egg deploy puts stuff in python2.4/site-package it doesn't
seems as moving turbogears app via egg is fisable unless there is a
tg/egg command that I can specify which will allow me either
easy_install in /var/www/myfirstapp or to put my tg app in
/var/www/myfirstapp folder.
- I also put myfirstapp.wsgi in /var/www/myfirstapp/myfirstapp.wsgi
 -Prod.cfg in /var/www/myfirstapp/prod.cfg
- The actual app is in /var/www/myfirstapp/myfirstapp/
- Static content is in /var/wwww/myfirstapp/myfirstapp/static
- Server.log is also in /var/www/myfirstapp/server.log  (I am not sure
if this will be needed since I will be able to use apache logs to
monitor my app? Correct?) (If that is the case who knows how to
disable tg logs?)


 Apache config:
----
Alias /static /var/www/myfirstapp/myfirstapp/static
WSGIScriptAlias /myfirstapp /var/www/myfirstapp/myfistapp.wsgi

<Directory /var/www/myfirstapp/myfirstapp >
Order deny,allow
Allow from all
</Directory>
------
Permissions for /var/www/myfirstapp would be apache user permissions (www-data)

-Does this folder structure sounds resonable?

-Now I run into problem where my app www.example.com/myfirstapp has a
login link that points to www.example.com/login   How do I tell tg or
wsgi to use www.example.com/myfirstapp/login?

- What would be a apache/wsgi config for having http://myfirstapp.example.com?
- What would be the difference in wsgi and/or tg configuration for
myfirstapp.example.com vs example.com/myfirstapp?

Lucas

--
http://lucasmanual.com/mywiki/TurboGears#head-36b7eef1526da4fe58c73738c925f34f6bc93c1d

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