Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 ?

Thanks

share|improve this question
    
Is there anyone who faces the same problem ? –  ehp Jun 12 '13 at 9:24
add comment

migrated from stackoverflow.com Jun 4 '13 at 6:48

This question came from our site for professional and enthusiast programmers.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.