How to Define Virtual Host Settings on Ubuntu?
Posted
by
shin
on Server Fault
See other posts from Server Fault
or by shin
Published on 2010-12-28T10:04:36Z
Indexed on
2010/12/28
10:55 UTC
Read the original article
Hit count: 266
ubuntu
|virtual-host
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.
© Server Fault or respective owner