I'm trying to create alias for my local website which is runned by vagrant(virtual box), hence I want redirect any requests from site.ru to 192.168.10.10/site.ru via /etc/hosts
file. In the hosts file I have the following:
...
192.168.10.10/site.ru site.ru
However it doesn't work as I want. When I go to site.ru I'm appear in the 'real' site. I hope anybody understand me to answer for my question..
What did I do wrong?
UPDATE:
Solution: How to setup mass dynamic virtual hosts in nginx?