MyBook World Edition: Using built-in lighttpd to serve webpages

My "low tech" hack is for setting up httpd access via the existing web
server that the MyBook uses:

  1. Create soft-links in /usr/www/lib to whatever you want to serve up.
    For example:

    ln -s /shares/internal/PUBLIC /usr/www/lib/
    
  2. If you want to get directory listings, open /etc/lighttpd/lighttpd.conf and add:

    dir-listing.activate = "enable"
    
  3. Reboot the MyBook

  4. Browse to http://mybookworld/PUBLIC and enjoy...

    Creating the soft-link did not work, I have no access to http://mybookworld/PUBLIC/ ...

  5. Solution: Edit /etc/lighttpd/lighttpd.conf and change the server.document-root:

    server.document-root = "/shares/internal/PUBLIC/"
    
  6. Reboot the MyBook

Password Protected Web Interface

Add the following to your /etc/lighttpd/lighttpd.conf file to set auth on your Clutch directory:

auth.require               = ( "/auth" =>
                               (
                                  "method"  => "digest",
                                  "realm"   => "nas admin",
                                  "require" => "valid-user"
# bruce - removed user=
#                                  "require" => "user=admin"
                               ),
                               "/Clutch/" =>
                               (
                                  "method"  => "digest",
                                  "realm"   => "nas admin",
                                  "require" => "valid-user"
                               ) 

This will use the same password you use to access your Mybook Webinterface.


Hit Counter by Digits