AllowOverride All httpd Options All-Indexes
- 27 April 2015
- Volodymyr Hodiak
- Administration
- 7462
Once you need disable directory and file browsing on a website, it is enough either to place the following string Options All -Indexes in a root folder in a .htaccess file; or to create a .htaccess file if there is none. It looks pretty easy, but what if this option is not active in the ISPmanager on the server? And now you have some fifty accounts? Do you have to create .htaccess files for each domain and configure them?
Let's see how any server administration panel works. Templates for hosts, ports, etc. have to be placed in a particular directory, they will compile certain settings for Apache2.
According to the documentation, ISPmanager reads the templates from /usr/local/ispmgr/etc/.
At least, it is written here.
Unfortunately, I am not that lucky :(
It's clear that editing the file /etc./apache2/apache2.conf doesn't make sense because the panel rewrites it. But having read its content, I saw that it includes httpd.conf.
There, I wrote:
Options All -Indexes AllowOverride All
Restart Apache and everything is alright.
The illustration to the article taken from 50 Shades of Grey.