Forbidden You don't have permission to access / on this server on the local server?

I ran into a problem, after I added a virtual host to the httdp-vhosts.conf file, I stopped accessing http://localhost/ I decided to register in the same file and access to localhost

<VirtualHost *:80> DocumentRoot "D:/Server/data/htdocs/" ServerName localhost </VirtualHost>

But it didn't give anything, I can't get access when entering writes

Forbidden You don't have permission to access / on this server.

What could be the error. P.S. Windows 10 Axis

Author: Mr.Flatman, 2018-01-11

1 answers

Add the Directory{[3] tags]}:

   <VirtualHost *:80>
        DocumentRoot "D:/Server/data/htdocs/"
        ServerName localhost
        <Directory "D:/Server/data/htdocs">
            AllowOverride All
            Require all granted
        </Directory>
    </VirtualHost>
 5
Author: de_frag, 2018-01-11 13:17:34