keepmoving
keepmoving

Reputation: 2043

How to set virtual host in apache

I am trying to setup the virtual host in apache web server on Ubuntu. For this I followed lot of tutorials and did exactly the same step. But could not find the reason why it is not working for me.

For Now see the following youtube tutorial:

https://www.youtube.com/watch?v=IfRJ4e8UQfQ

I followed this tutorial and did exactly the same as in video. But still when I type testdomain.com on browser it does not show any thing from local machine. Instead of it looks for Internet domain. Do I need to entry something in host file.

Please guide to find out problem why it is not working for me on ubuntu-14. Thanks

Upvotes: 0

Views: 37

Answers (1)

Stanimir Stoyanov
Stanimir Stoyanov

Reputation: 1213

You need to edit your /etc/hosts file. Append 127.0.0.1 testdomain.com, save and restart the browser.

Upvotes: 1

Related Questions