In my pc (running on Ubuntu) , I have configured apache and php. I wanted to create a subdomain 'mysite.localhost' on my localhost
I have a folder /var/www/mysite Which I would like to access like http://mysite.localhost/
I followed the steps in http://thinkingnectar.com/2008/getting-ubuntu-to-work-creating-subdomain-in-localhost/
Basically did the following
Edited /etc/host and added the following line
127.0.0.1 mysite.localhost
Created a new configuration file in /etc/apache2/sites-available/mysite using
gksudo gedit /etc/apache2/sites-available/mysite
<VirtualHost *:80>
DocumentRoot /var/www/mysite
ServerName mysite.localhost
<Directory /var/www/mysite>
Options Indexes FollowSymLinks MultiViews +Includes
AllowOverride all
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Saved the file, and run the following:
sudo a2ensite mysite
Finally restarted the Apache Server.
sudo /etc/init.d/apache2 restart
But on browsing http://mysite.localhost/ I get this message
" Network Error (dns_unresolved_hostname) .Your requested host "mysite.localhost" could not be resolved by DNS. "
Can anyone suggest what could be going wrong?