Just to let you know, I will get to this. :-) I am not doing very well at keeping on top of things right now and worse with things that need to apply some thought to it and give a good reasoned response.
Graham On 1 September 2010 00:55, virgil.balibanu <[email protected]> wrote: > I have no WSGIScriptAlias. > I will post here my apache (mod_wsgi) configuration file. I did it > using one of the examples on this group. > > <IfDefine HAVE_WSGI> > <IfModule !mod_wsgi.c> > LoadModule wsgi_module modules/mod_wsgi.so > </IfModule> > </IfDefine> > > <IfModule mod_wsgi.c> > > #WSGIRestrictEmbedded On > > WSGIDaemonProcess site-0 user=site-0 group=nobody > WSGIDaemonProcess site-1 user=site-1 group=nobody maximum- > requests=300 inactivity-timeout=300 > WSGIDaemonProcess site-2 user=site-2 group=nobody maximum- > requests=300 inactivity-timeout=300 > WSGIDaemonProcess site-3 user=site-3 group=nobody maximum- > requests=300 inactivity-timeout=300 > #users are added here when new users need to be registered > > RewriteEngine On > RewriteMap tolower int:tolower > RewriteMap wsgiprocmap txt:/etc/httpd/conf/wsgiprocmap.txt > #wsgiprocmap.txt is a file where I map sites to processes so that > apache would now what site runs on which wsgi daemon process > > RewriteRule . - [E=PROCESS_GROUP:${wsgiprocmap:%{HTTP_HOST}}] > > WSGIProcessGroup %{ENV:PROCESS_GROUP} > WSGIApplicationGroup %{GLOBAL} > #WSGIApplicationGroup %{ENV:APPLICATION_GROUP} > > RewriteCond %{ENV:PROCESS_GROUP} !site-0 > RewriteCond %{REQUEST_URI} ^/(?!uploads|thumbnails|captchas| > invoices_pdf|media|webbi_media|uploader|admin-media|cpanel_scripts| > domains|domains_core) > RewriteRule ^/(.*) /var/www-domains/${tolower:%{HTTP_HOST}}/apache/ > django.wsgi/$1 > > #and lots of other rewrite rules > > <DirectoryMatch /var/www-domains/(.+)/apache> > Order allow,deny > Allow from all > Options ExecCGI > AddHandler wsgi-script .wsgi > </DirectoryMatch> > > <Directory /var/www-domains/*/demosite/media/uploads> > Order allow,deny > Allow from all > AllowOverride None > Options None > </Directory> > > #and other similar declarations > > </IfModule> > > Most ot the rewrite rules here have now been moved to nginx. > > I can't remember how to find the post here that I followed in doing > this but the idea is that a user comes to register a site with us > (http://web-design.ro) and I create his site and tell apache to run > that site on one of the predefined processes, so that the sites would > be created dynamically without the need to restart apache each time a > new user is created. > > Thank you, > Virgil Balibanu > > -- > 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. > > -- 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.
