On 16 jun, 16:23, Aljosa Mohorovic <aljosa.mohoro...@gmail.com> wrote:
> i'm looking for comments or tips for my apache setup.
> server setup goals are:
> - independent adding/removing/restarting of wsgi apps per site (regex
> for vhosts?)
> - server setup for max. number of small sites (each site has very
> small amount of request per day)
>
> server is cloudserver instance (http://www.mosso.com/cloudservers.jsp)
> running ubuntu intrepid:
> # packages:
> ii  apache2                           2.2.9-7ubuntu3
> Apache HTTP Server metapackage
> ii  apache2-mpm-worker                2.2.9-7ubuntu3
> Apache HTTP Server - high speed threaded mod
> ii  apache2-utils                     2.2.9-7ubuntu3
> utility programs for webservers
> ii  apache2.2-common                  2.2.9-7ubuntu3
> Apache HTTP Server common files
> ii  libapache2-mod-wsgi               2.3-1
> Python WSGI adapter module for Apache
> ii  python                            2.5.2-1ubuntu1                An
> interactive high-level object-oriented la
>
> apache2 config files:
> /etc/apache2/sites-enabled/example-1.com
> [...]
> /etc/apache2/sites-enabled/example-[n].com
>
> example apache2 config file:
> # cat /etc/apache2/sites-enabled/example-1.com
> <VirtualHost 127.0.0.1:80>
>         ServerAdmin m...@example-1.com
>         ServerNamewww.example-1.com
>         ServerAlias example-1.com
>
>         Alias /media/ /var/www/wsgi/example-1.com/media/
>
>         <Directory /var/www/wsgi/example-1.com/media/>
>                 Order deny,allow
>                 Allow from all
>         </Directory>
>
>         DocumentRoot /var/www/wsgi/example-1.com/
>         <Directory /var/www/wsgi/example-1.com/>
>                 Order deny,allow
>                 Allow from all
>         </Directory>
>         LogLevel warn
>         ErrorLog /var/www/wsgi/example-1.com/logs/apache_error.log
>         CustomLog /var/www/wsgi/example-1.com/logs/apache_access.log
> combined
>         WSGIDaemonProcess example-1.com user=www-data group=www-data
> threads=5
>         WSGIProcessGroup example-1.com
>         WSGIScriptAlias / /var/www/wsgi/example-1.com/project.wsgi
> </VirtualHost>
>
> any comments/recommendations?
>
> Aljosa Mohorovic

looks fine by me,
for restarting daemon processes see
http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode
note that this setup has a max concurrent request of 5
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to modwsgi@googlegroups.com
To unsubscribe from this group, send email to 
modwsgi+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to