How to Define Virtual Host Settings on Ubuntu?
- by shin
I use Ubuntu 10.10 on my laptop.
I added the following to /etc/apache2/httpd.conf
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "/var/www/square/public"
ServerName square.localhost
</VirtualHost>
And restarted the apache.
I go to http://square.localhost/ and it gives an error telling server not found.
Could anyone tell me how to define virtual host settings on Ubuntu please?
Thanks in advance.