//File path: ~/XAMPP/apache/conf/extra/httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "F:/XAMPP/htdocs/"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "F:/XAMPP/htdocs/todo-api"
ServerName api.todo
</VirtualHost>
//Complete Path: C:WindowsSystem32driversetchosts
127.0.0.1 localhost
127.0.0.1 api.todo #Right Down ServerName