Advertisement
Infra_HDC

Debian, Ubuntu, Apache2: disable directory listing

Feb 28th, 2022
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. user@host:~$ sudo a2dismod --force autoindex
  2. [sudo] password for user:
  3. Module autoindex disabled.
  4. To activate the new configuration, you need to run:
  5. systemctl restart apache2
  6. user@host:~$ sudo systemctl restart apache2
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement