Apache 2.4 Directory Listing

Discussion in 'Installation/Configuration' started by fredol, Dec 14, 2015.

  1. fredol

    fredol New Member

    Hello
    I want to disable Directory Listing for Apache Vhosts.
    My environment :
    - Debian Jessie : all updates
    - ISPConfig : last version
    - Multiserver setup

    I have added Options -Indexes in Apache Directives (Options tab) with no luck.
    Directories without index.php/index.html file reveal their content.

    Can someone tells me that's wrong with my setup ?

    Thanks in advance
    Fredol
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can add the setting globally for /var/www directory in the apache2.conf file of your system. I would recommend to put it into a <Directory /var/www> directive.
     
  3. fredol

    fredol New Member

    Hello
    Thank you for your help. I modified the default apache2.conf and it works.
    Any chance this modification to be reverted by upgrades ?
    Fredol
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    No, this config will not get changed on Debian updates.
     

Share This Page