Mobile app version of vmapp.org
Login or Join
Jennifer507

: How can i display the MD5 or SHA1 of files in a web server directory? When you don't have an index.html, most web servers will show a list of files in the directory. Can I get preferably

@Jennifer507

Posted in: #Apache #Filenames #Files #Hash #Lighttpd

When you don't have an index.html, most web servers will show a list of files in the directory.

Can I get preferably lighttpd (but Apache as a backup) to do show a file's MD5/SHA1 (along with standard file size, date) with no (or minimal) other programs involved? If so, how? (Debian on a very very low RAM VPS is the reason)

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Jennifer507

1 Comments

Sorted by latest first Latest Oldest Best

 

@Nimeshi995

Apache and Lighthttpd both have a directory listing mod that you need to enable, often by default these are disabled for security reasons. You can enable indexing by doing the following:

Lighthttp

To enable directory listings globally:

dir-listing.activate = "enable"


If you need it only for a directory, use conditionals:

$HTTP["url"] =~ "^/download($|/)" {
dir-listing.activate = "enable"
}


Apache

To enable directory listings globally:

<Directory /usr/local/apache2/htdocs/listme>
Options +Indexes
</Directory>


However...

Directory indexing in both Apache2 and Lighthttpd do not support MDA SHA file hasing, its a simple directory view that allows you to download files, nothing more. You will need to use a PHP file manager or make your own using PHP MD5 File script. It's not a straight forward topic and your have to do some research, or pay for hosting with management.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme