php: Apache2, It lists the files of my projects - Docker

0

I have several projects, each with its virtual Host, but when I enter with the IP, the project folders are listed. I can not block the indexing of files when the IP is entered in the browser.

    ServerName mydomain.com     DocumentRoot "/ var / www / html / my_proyect / public"

<Directory "/var/www/html/my_proyect/public">
    Options FollowSymlinks MultiViews
    AllowOverride All
    Require all granted

    <FilesMatch "\.php$">
        Require all granted
    </FilesMatch>
</Directory>

ErrorLog "/var/log/apache2/apa.com_error.log"
ServerSignature Off
CustomLog "/var/log/apache2/apa.com_access.log" combined

ServerAlias mydomain.com

SetEnv APPLICATION_ENV local
SetEnv APP_ENV local

When entering with the Ip the folders are seen from the directory / var / www / html which in that directory I leave all the projects.

    
asked by Luis 29.07.2018 в 00:24
source

0 answers