Re: VirtualHosting problem: "ERROR: Site mysite.com does not exist!"
a few problems here:
Originally Posted by Toriku
1. is supposed to be already in ports.conf, and should include the port.
2. You don't place your site in sites-enabled if you want to use a2ensite. You place it in sites-available
3. Your virtual host should have
In addition, unless that is the only site you are serving (that would defeat the purpose of Virtual Hosts right?)
you would need a
in the Virtual host as well
Note that instead of the * in
You can enter
note that the above example listen on all ips, I removed the examples that listen on specific ips.
<VirtualHost <ip address>:80>
Last edited by sandyd; December 22nd, 2012 at 06:35 PM.
Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.