HI i m trying to create virtual hosts for my PHP sites.I edited httpd-vhosts.conf with the following code
<VirtualHost *:80>
DocumentRoot C:/xampp/htdocs/logo
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot C:/xampp/htdocs/new
ServerName local
</VirtualHost>
and host file with
127.0.0.1 local
127.0.0.1 localhost
Now the logo project is accessible but the new is not.
<VirtualHost *:80> DocumentRoot C:/xampp/htdocs/logosnap ServerName localhost </VirtualHost> <VirtualHost *:80> DocumentRoot C:/xampp/htdocs/new ServerName local </VirtualHost>