I have installed xampp on my ubuntu 12.4 machine. I have created a virtual host for one of my project. It works with the server name, but server alias doesn't work. Below is the httpd-vhosts.conf file
<VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "/opt/lampp/htdocs/wordpress" ServerAlias www.test.wordpress ServerName test.wordpress ErrorLog "logs/test.wordpress-error_log" CustomLog "logs/test.wordpress-access_log" common </VirtualHost>
Now If I write test.wordpress in the browser it works, But I write www.test.wordpress it says server not found.
Why this is happening ?