I have two subdomains, each register with my dns registrar to point to my VPS ip address. Pinging both resolve fine. I have two Virtual Host configurations for two sites but the problem is that both subdomains redirect to the same page. I am confused and must be missing something within Apache which is causing this strange occurrence.
My DNS settings are set to A records to the ip of my VPS. Is this correct? I dont believe I need CNAMEs.
<VirtualHost *> ServerName phpmyadmin.<mydomain>.com DocumentRoot "/srv/www/phpmyadmin" <Directory "/srv/www/phpmyadmin"> allow from all Options +Indexes +Includes +ExecCGI </Directory> </VirtualHost> <VirtualHost *> ServerName panel.<mydomain>.com DocumentRoot "/srv/www/repo_project" WSGIScriptAlias / /srv/www/repo_project/django.wsgi <Directory "/srv/www/repo_project"> allow from all Options +Indexes +Includes +ExecCGI </Directory> </VirtualHost>