1: name visual host as "ba.com"

2: add a line in "C:\WINDOWS\system32\drivers\etc\host":
127.0.0.1       ba.com
it means map ba.com to 127.0.0.1

3: change apache configuration: add those lines
<VirtualHost *:80>
      ServerName ba.com
      DocumentRoot D:/xampp/htdocs/ZF/public
      <Directory "D:/xampp/htdocs/ZF/public">
        AllowOverride All
      </Directory>
</VirtualHost>
These configuration means when http request arrive apache server,
apache will resolve this url "ba.com" to the direction "D:/xampp/htdocs/ZF/public"
then your php code will be executed.

4:open your browser type ba.com to execute.