title: problem using WSGIApplicationGroup %{GLOBAL} in apache configuration
body: <p>im using django with apache and mod_wsgi
  i am facing a problem when i use WSGIApplicationGroup %{GLOBAL} in apache configuration file (.conf) . i dont know if i am using this directive correctly or i need to use it in another way , the problem is that i needed to add this directive to fix a problem for xapian as described in this ticket (<a href="http://trac.xapian.org/ticket/185" rel="nofollow noreferrer">http://trac.xapian.org/ticket/185</a>) after that the search started to work but all my sites contents got mixed up, meaning site1 content appears on site2.when i removed WSGIApplicationGroup %{GLOBAL} , sites are rendering properly again but search stopped working.</p>
  
  <p>here is my .conf file  contents:</p>
  
  <pre><code>NameVirtualHost my_ip_address:80
  WSGIApplicationGroup %{GLOBAL}
  &lt;VirtualHost my_ip_address:80&gt;
  ServerName www.site1.com
  ServerAlias site1
  
  WSGIScriptAlias / "/home/sa/www/site1/apache/django.wsgi"
  &lt;Directory "/home/sa/www/site1/apache"&gt;
      Allow from all
  &lt;/Directory&gt;
  
  Alias /site_media/ "/home/sa/www/site1/media/"
  &lt;Directory "/home/sa/www/site1/media/"&gt;
      Order allow,deny
      Options Indexes FollowSymLinks
      Allow from all
      IndexOptions FancyIndexing
  &lt;/Directory&gt;
  
  
  &lt;/VirtualHost&gt;
  
  WSGIApplicationGroup %{GLOBAL}
  
  &lt;VirtualHost my_ip_address:80&gt;
  ServerName www.site2.com
  ServerAlias site2
  
  WSGIScriptAlias / "/home/sa/www/site2/apache/django.wsgi"
  &lt;Directory "/home/sa/www/site2/apache"&gt;
      Allow from all
  &lt;/Directory&gt;
  
  Alias /site_media/ "/home/sa/www/site2/media/"
  &lt;Directory "/home/sa/www/site2/media/"&gt;
      Order allow,deny
      Options Indexes FollowSymLinks
      Allow from all
      IndexOptions FancyIndexing
  &lt;/Directory&gt;
  
  Alias /media/ "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/media/"
  &lt;Directory "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/media/"&gt;
      Order allow,deny
      Options Indexes FollowSymLinks
      Allow from all
      IndexOptions FancyIndexing
  &lt;/Directory&gt;
  
  &lt;/VirtualHost&gt;
  
  
  
  WSGIApplicationGroup %{GLOBAL}
  
  &lt; VirtualHost my_ip_address:80 &gt;
  ServerName www.site3.com
  ServerAlias site3
  
  WSGIScriptAlias / "/home/sa/www/site3/apache/django.wsgi"
  &lt;Directory "/home/sa/www/site3/apache"&gt;
      Allow from all
  &lt;/Directory&gt;
  
  Alias /site_media/ "/home/sa/www/site3/media/"
  &lt;Directory "/home/sa/www/site3/media/"&gt;
      Order allow,deny
      Options Indexes FollowSymLinks
      Allow from all
      IndexOptions FancyIndexing
  &lt;/Directory&gt;
  
  Alias /media/ "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/media/"
  &lt;Directory "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/media/"&gt;
      Order allow,deny
      Options Indexes FollowSymLinks
      Allow from all
      IndexOptions FancyIndexing
  &lt;/Directory&gt;
  
  &lt;/VirtualHost&gt;
  
  
  WSGIApplicationGroup %{GLOBAL}
  
  &lt;VirtualHost my_ip_address:80&gt;
  
  ServerName www.site4.com
  ServerAlias site4
  
  WSGIScriptAlias / "/home/sa/www/site4/apache/django.wsgi"
  &lt;Directory "/home/sa/www/site4/apache"&gt; 
      Allow from all 
  &lt;/Directory&gt;
  
  Alias /site_media/ "/home/sa/www/site4/media/"
  &lt;Directory "/home/sa/www/site4/media/"&gt;
      Order allow,deny
      Options Indexes FollowSymLinks
      Allow from all
      IndexOptions FancyIndexing
  &lt;/Directory&gt;
  
  Alias /media/ "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/media/"
  &lt;Directory "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/media/"&gt;
      Order allow,deny
      Options Indexes FollowSymLinks
      Allow from all
      IndexOptions FancyIndexing
  &lt;/Directory&gt;
  
  &lt;/VirtualHost&gt;
  
  
  WSGIApplicationGroup %{GLOBAL}
  
  &lt;VirtualHost my_ip_address:80&gt;
  ServerName www.site5.com
  ServerAlias site5
  
  WSGIScriptAlias / "/home/sa/www/site5/apache/django.wsgi"
  &lt;Directory "/home/sa/www/site5/apache"&gt;
      Allow from all
  &lt;/Directory&gt;
  
  Alias /site_media/ "/home/sa/www/site5/media/"
  &lt;Directory "/home/sa/www/site5/media/"&gt;
      Order allow,deny
      Options Indexes FollowSymLinks
      Allow from all
      IndexOptions FancyIndexing
  &lt;/Directory&gt;
  
  Alias /media/ "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/media/"
  &lt;Directory "/usr/local/lib/python2.6/dist-packages/django/contrib/admin/media/"&gt;
      Order allow,deny
      Options Indexes FollowSymLinks
      Allow from all
      IndexOptions FancyIndexing
  &lt;/Directory&gt;
  
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>has anybody faced this issue 
  any suggestions</p>
  
  <p>thanks</p>