I want to share my music files by having it accessible as a web page.
I started with loading lighttpd and php5 extension and starting it with the following script:
cat << EOF > $HTTPD_CONF
server.document-root = "/"
server.port = 8080
server.username = "nobody"
server.groupname = "nogroup"
server.chroot = "$HTTPD_ROOT"
index-file.names = ( "index.html", "index.php")
exec $HTTPD -D -f $HTTPD_CONF
and I saved a test file called index.php with the following contents in /mnt/sdc1/music
but when I try to view the web page with 192.168.2.7:8080 I get 404 - Not Found error.
For some reason it does not seem to find the file and I can't see why.
I am also clueless on how to get lighttpd to present a directory of all the subdirectories and files to download.
Can anyone suggest where to look to resolve this problem? TIA