"How do I disable directory browsing?" Code Answer's
You're definitely familiar with the best coding language Shell/Bash that developers use to develop their projects and they get all their queries like "How do I disable directory browsing?" answered properly. Developers are finding an appropriate answer about How do I disable directory browsing? related to the Shell/Bash coding language. By visiting this online portal developers get answers concerning Shell/Bash codes question like How do I disable directory browsing?. Enter your desired code related query in the search bar and get every piece of information about Shell/Bash code related question on How do I disable directory browsing?.
deny directory listing htaccess
# Place the following in your .htaccess at doc root
Options -Indexes
How do I disable directory browsing?
This will disable directory listing from all folder that apache2 serves:
Open /etc/apache2/apache2.conf and change from this:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
to this:
<Directory /var/www/>
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
then restart apache by:
sudo service apache2 reload
All those coders who are working on the Shell/Bash based application and are stuck on How do I disable directory browsing? can get a collection of related answers to their query. Programmers need to enter their query on How do I disable directory browsing? related to Shell/Bash code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about How do I disable directory browsing? for the programmers working on Shell/Bash code while coding their module. Coders are also allowed to rectify already present answers of How do I disable directory browsing? while working on the Shell/Bash language code. Developers can add up suggestions if they deem fit any other answer relating to "How do I disable directory browsing?". Visit this developer's friendly online web community, CodeProZone, and get your queries like How do I disable directory browsing? resolved professionally and stay updated to the latest Shell/Bash updates.