Disable directory listing

Discussion in 'Server Operation' started by pkaresz11, Jan 3, 2017.

  1. pkaresz11

    pkaresz11 New Member

    Hi,
    the directory listing is enable by default on Ubuntu 16.04-ISPconfig3.1.
    How can I disable it as default for all website?
    Thx
     
  2. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    a2dismod autoindex
    service apache2 restart
    ?
     
  3. pkaresz11

    pkaresz11 New Member

    Thanks Florian!it's work but i get 404 error instead of 403 forbidden.it's okay?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    This can be absolutely ok. You will get a 403 when you try to access a folder without index file when directory listing is off. But if you try to access a file and this files or the whole folder does not exist, then you will get a 404.
     

Share This Page