Forbidden when accessing my directories - Apache

0

I'm using Windows 7 x64 and I installed apache 2.4 with PHP 7.1 separately, set everything up and when I put localhost, it works normally.

Then inside my htdocs, I created a folder called projects. When I access the address link it returns me 403 forbidden and does not show me the files I have in it, what can I do to free the access ?

NOTE: I do not use WAMP and XAMP, only apache and native php.

UPDATE

My httpd.conf looks like this:

DocumentRoot "c:/Apache24/htdocs"

<Directory "c:/Apache24/htdocs">
    Options Indexes FollowSymLinks

    AllowOverride All
    Require all granted
    Options ExecCGI
    Order Deny,Allow
    Allow from all
</Directory>

And I'm using vhosts, httpd-vhosts.conf:

<VirtualHost *:80>
    DocumentRoot "c:/Apache24/htdocs/projetos/vhost.com/"
    ServerName vhost.com
    <Directory  "c:/Apache24/htdocs/projetos/vhost.com">
       Require all granted
    </Directory>
</VirtualHost>


<VirtualHost *:80>
    DocumentRoot "c:/Apache24/htdocs/"
    ServerName localhost
</VirtualHost>
    
asked by anonymous 08.06.2017 / 15:37

1 answer

1

You need to release access to subfolders through the httpd.conf file located inside the Conf folder in the apache installation directory.

Or add a rule to your .htacces file, good for both cases you can search for that other question below that has the solution.

Releasing a protected sub-directory with .htaccess?

    
08.06.2017 / 16:02