Hi,
I'm trying to set up a virtual host configuration in apache2. I have a 360 with a single IP. Ports.conf has:
Code:
Listen 80
NameVirtualHost *:80
There are two files in sites-enabled. One has:
Code:
<VirtualHost *:80>
ServerName something.com
ServerAlias *.something.com
DocumentRoot /home/domains/something.com/public_html
</VirtualHost>
The other has:
Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
Alias /bluewhales /usr/share/phpmyadmin
DocumentRoot /var/www
</VirtualHost>
... but the site that shows up when I type in the server's IP is something.com, not the desired content in /var/www. I tried adding a ServerName directive, but that simply broke the stylesheet and image links when I viewed something.com by typing in the server's IP into my browser.
I also tried putting the /var/www vhost before the loading of the sites-enabled files in apache2.conf. Same result as adding a ServerName directive.
What am I doing wrong here? Thanks in advance.