How to apache basic authorization in virtual host

Create apache virtual host:

Create password file: