I have a problem here with Symfony 2. I want to have virtual host on Windows Vista PC, so I can access my Symfony application like this myapp.local.com
.
What I have tried:
I added these lines to hosts file
127.0.0.1 local.com 127.0.0.1 myapp.local.com
These I added to apache httpd-vhosts.conf
< VirtualHost myapp.local.com:80 > DocumentRoot "d:/data/www/myapp/web" ServerName myapp.local.com Alias /sf /$sf_symfony_data_dir/web/sf < Directory "/$sf_symfony_data_dir/web/sf" > AllowOverride All Allow from All < /Directory > < Directory "d:/data/www/myapp/web" > AllowOverride All Allow from All < /Directory > < /VirtualHost >
but when I write myapp.local.com
in my browser, it brings the index of my www
directory. What am I doing wrong?