Tips & Tricks – Hide Your SabreDAV Directory

Are you using SabreDAV for your project? How does it look when you go to it’s root directory?

Mine:

Either you can protect by .htaccess & .htpasswd with apache2 rewrite_mode. But there is an simple & easy way to hide it by creating an empty index.html. Like this:

Find all SabreDAV directories in /var/www and create an index.html

find /var/www/ -name SabreDAV* -print -exec touch {}/index.html \;

Check if the index.html is now in your SabreDAV directories.

find /var/www/ -name SabreDAV* -exec ls -l {}/index.html \;

Result:

 

RELATED POSTS
Share the Post: