I've seen this time and time again but I must be doing something wrong. I know how to do it in IIS but I need some pushing in the right direction for Apache.
Apache 2.0.43
2(+) websites 1 IP address
Here's my directives:
<VirtualHost *>
DocumentRoot "/Volume2m/Websites/website1.com"
ServerName website1.com
ServerAlias ww2.website1.com
</VirtualHost>
<VirtualHost *>
DocumentRoot "/Volume2m/Websites/website2.com"
ServerName website2.com
ServerAlias ww2.website2.com
</VirtualHost>
Right now, both sites view the first VHost site. If I change <VirtualHost *.website1.com> the sites default to the apache default site.
What's wrong?
Apache 2.0.43
2(+) websites 1 IP address
Here's my directives:
<VirtualHost *>
DocumentRoot "/Volume2m/Websites/website1.com"
ServerName website1.com
ServerAlias ww2.website1.com
</VirtualHost>
<VirtualHost *>
DocumentRoot "/Volume2m/Websites/website2.com"
ServerName website2.com
ServerAlias ww2.website2.com
</VirtualHost>
Right now, both sites view the first VHost site. If I change <VirtualHost *.website1.com> the sites default to the apache default site.
What's wrong?