I've just added new VirtualHost on my server. (below config..) How can I forbit browsing top directory (for example: opendir('../../public_html/another_site/') ) ? What I should add to config? I want separete diretories of sites. Maybe it's wrong way? php / apache config?
<VirtualHost *:80>
ServerName mysite.pl
ServerAlias www.mysite
DocumentRoot /var/www/public_html/mysite
<Directory /var/www/public_html/mysite>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<IfModule mod_dir.c>
DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm index.php5
</IfModule>
</VirtualHost>