I have Setup two websites on my Ubuntu 12.04 x32 VPS, say abc.com and xyz.com.
For some reason, since abc.com in first in the alphabetical order, even xyz.com redirects to abc.om
VirtualHosts File for abc.com:
<VirtualHost *:80>
ServerAdmin webmaster@abc.com
DocumentRoot /var/www/abc/
ServerName abc.com
ServerAlias abc.com
</VirtualHost>
VirtualHosts fle for xyz.com:
<VirtualHost *:80>
ServerAdmin webmaster@xyz.com
DocumentRoot /var/www/xyz/
ServerName xyz.om
ServerAlias xyz.com
</VirtualHost>
Here is this message I get each time I start apache:
* Restarting web server apache2
[Sat Jun 28 06:06:27 2014] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
... waiting [Sat Jun 28 06:06:28 2014] _default_ VirtualHost overlap on port 80, the first has precedence
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.