Hi I have this problem with a new rackspace cloud server.
i have an apache where the ServerName is set to mydomain.com the DocumentRoot is /var/www/html
and I have a few virtual hosts too which I want to have in this server
I got a seperate file called hosts.conf in the /etc/httpd/conf.d/ the content of it looks like this
NameVirtualHost *:80 <Directory /var/domains> AllowOverride None Options None Order allow,deny Allow from all </Directory> <VirtualHost *:80> ServerName mydomain-1.com DocumentRoot /var/domains/mydomain-1.com ServerAlias www.mydomain-1.com ServerAdmin email@example.com </VirtualHost> <VirtualHost *:80> ServerName mydomain-2.com DocumentRoot /var/domains/mydomain-2.com ServerAlias www.mydomain-2.com ServerAdmin firstname.lastname@example.org </VirtualHost>
so the problem is when I add try to access the three websites,
mydomain.com, mydomain-1.com and mydomain-2.com, all of them returns the mydomain.com content.
any help is appreciated