On Tue, Aug 3, 2010 at 4:16 PM, John-Scott Atlakson
<[email protected]> wrote:
> As for optimizing, I'm assuming you are running modwsgi in daemon mode. What 
> are your modwsgi settings? How much RAM do you have available for Apache? 
> Will Apache be serving static requests? Other non-modwsgi applications (PHP, 
> etc.)?

apache is also serving static requests, there are only wsgi apps on server.
server is a small ec2 instance with 1.7GB so apache can use up to 1GB
(http://aws.amazon.com/ec2/#instance).

apache configuration, domain replaced with example.com:
<VirtualHost *:80>
        ServerName example.com

        ErrorLog /var/log/apache2/example.com-error_log
        CustomLog /var/log/apache2/example.com-access_log common
        CustomLog /var/log/apache2/example.com-wtop_log wtop

        Alias /robots.txt /var/www/wsgi/robots.txt

        WSGIDaemonProcess example.com display-name=%{GROUP}
user=www-data group=www-data threads=50 maximum-requests=100
        WSGIProcessGroup example.com
        WSGIScriptAlias / /var/www/wsgi/example.com/project.wsgi

        DocumentRoot /var/www/wsgi/example.com/
        <Directory /var/www/wsgi/example.com/>
                Order deny,allow
                Allow from all
        </Directory>

        Alias /media/ /var/www/wsgi/example.com/media/
        <Directory /var/www/wsgi/example.com/media/>
                Order deny,allow
                Allow from all
        </Directory>
</VirtualHost>

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