We have a Django application that needs to respond to a number of different 
sub-domains. By using Django middleware, we are able to avoid having to run 
a separate instance of the Django application for each virtualhost. We need 
to specify a virtualhost for each subdomain as there is some Apache-level 
configuration that must be specified for each hostname.

The problem I'm experiencing is that the server is very slow to respond at 
first. Sometimes the first request can take 15-30 seconds to go through. 
Load on the server is minimal, and typically once the first request goes 
through, the server is quite responsive. When making a request to a 
different host, however, we again will encounter slowness.

Our apache config for the site looks something like this:

WSGIScriptAlias /path /path/to/wsgi-file.wsgi
WSGIDaemonProcess proj_name processes=10 threads=1

<VirtualHost *:80>
  ServerName sub1.host.com
  # subdomain-specific logging, etc
</VirtualHost>

<VirtualHost *:80>
  ServerName sub2.host.com
  # subdomain-specific logging, etc
</VirtualHost>

# etc, for ~50 subdomains

Can you help me understand what might be going on here? I have tried to 
read the documentation, but it's very difficult to parse.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to modwsgi+unsubscr...@googlegroups.com.
To post to this group, send email to modwsgi@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to