Thanks,

I did not understand that part very well the first time I read through
it and it seemed very difficult so i tried the embedded method. Now
reread it and played with it for a bit and got to this:

    WSGIDaemonProcess site-1
    WSGIDaemonProcess site-2
    WSGIDaemonProcess site-3
    WSGIDaemonProcess site-4

    RewriteEngine On
    RewriteMap tolower int:tolower
    RewriteMap wsgiprocmap txt:/etc/httpd/modules.d/wsgiprocmap.txt

    RewriteCond %{REQUEST_URI} ^/uploads/ [OR]
    RewriteCond %{REQUEST_URI} ^/thumbnails/ [OR]
    RewriteCond %{REQUEST_URI} ^/captchas/ [OR]
    RewriteCond %{REQUEST_URI} ^/invoices_pdf/
    RewriteRule ^/(.*) /mnt/data/www/domains/${tolower:%{SERVER_NAME}}/
media/$1

    RewriteCond %{SERVER_NAME} !webbi [NC]
    RewriteCond %{REQUEST_URI} ^/media/
    RewriteRule ^/media/(.*) /mnt/data/www/iitcms/media/$1

    RewriteCond %{REQUEST_URI} ^/uploader/
    RewriteRule ^/uploader/(.*) /mnt/data/www/iitcms/uploader/$1

    RewriteCond %{SERVER_NAME} webbi [NC]
    RewriteCond %{REQUEST_URI} ^/media/
    RewriteRule ^/media/(.*) /mnt/data/www/domains/webbi/media/$1

    RewriteCond %{REQUEST_URI} ^/admin_media/
    RewriteRule ^/admin_media/(.*) /usr/lib/python2.6/site-packages/
django-trunk/django/contrib/admin/media/$1

    RewriteCond %{REQUEST_URI} ^/(?!uploads|thumbnails|captchas|
invoices_pdf|media|uploader|admin_media)
    RewriteRule ^/(.*) /mnt/data/www/domains/${tolower:%{SERVER_NAME}}/
apache/django.wsgi/$1

    RewriteRule . - [E=PROCESS_GROUP:${wsgiprocmap:%{SERVER_NAME}}]

    WSGIProcessGroup %{ENV:PROCESS_GROUP}
    WSGIApplicationGroup %{GLOBAL}

webbi server is not a user site but my site, but i can't (or more
correct i don't know how) put it in a virtual host block. Now what I
understood so far is that each site will user a different process but
under the same user. And you say that I can also configure it so that
each runs under a different user. How can I do that? Just by creating
the users site-1 ... site-N in the system? Also the users have to
belong to a specific group and the group to have access to all
directories needed, that I get.

Thanks,
Virgil

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" 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/modwsgi?hl=en.

Reply via email to