I am using WordPress network subdomain setup. I had to put *.mydomain.com
as a server alias but now I also have a site subdomain.mydomain.com
that leads to another directory. Is there a way of doing this since when I type subdomain.mydomain.com
it just loads the WordPress sign up page.
I do have a virtualhost setup for it.
I'm assuming that you have two VirtualHosts:
Make sure that your
subdomain.mydomain.com
VirtualHost is loaded or located in file before the VirtualHost with ServerAlias of*.mydomain.com
.Apache will use the 1st VH it finds that matches ServerName/Alias.
Then restart Apache.
Edit:
In file it should be...
You can get the default VH and load order by running: httpd -S