: 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
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)
More posts by @Jennifer507
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.