Drupal 7 Domain Access Module Gives 500 error, WSOD for subdomains I am attempting to get Drupal 7's domain access module working.
I have the original domain that the site was built on, and 2 more domains,
all configured from a local apache virtual host configuration.

I can log in and configure with the original domain name "localhost",
but when I try to log in with any of the other domains I configured I get a 500 Internal Server Error.

Domains Configured (for local use):
1)localhost
2)drupalx.domainaccess.com
3)drupaly.domainaccess.com

This is the domain configuration page for domain's in Drupal.  Note I have 3 domains configured, localhost, drupalx, drupaly.


I know that the domains I set up work because if they did not then this next image would have a warning saying that the domain module could not access files on the domain name.
I also verified this by using the drupalx/drupaly domains and I was able to access css files in a subfolder of the drupal install using these domains.



Here is the home page for the drupalx domain. The only page that can be accesssed is the home page. 



If I try to go to any other page in drupalx or drupaly I get a 500 error, WSOD.



Here is my virtual host setup 



I don't have any drupal reports on this, and my apache logs only gave the 500 error info

ie:
127.0.0.1 - - [24/Apr/2014:16:54:46 -0700] "GET /user/register HTTP/1.1" 500 530
OK, might as well add a tentative answer on this one.

Add your subdomains using ServerAlias within the same single VirtualHost, because they all have the same document root.

ServerName www.example.com
ServerAlias drupalx.example.com
ServerAlias drupaly.example.com


Fix the stray rewrite stanza in virtualhost scope.

e.g put it inside the Directory block.

&lt;Directory "C:\xammp\www"&gt;
  &lt;IfModule mod_rewrite.c&gt;
    RewriteEngine on
    # Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !=/favicon.ico
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
  &lt;/IfModule&gt;
&lt;/Directory&gt;


However, the latter isn't really needed if using the default .htaccess file in your doc root. Alternatively, remove .htaccess and copy its contents to the Directory block instead.