5.13.5.2.2. Serving Packages via lighttpd

If you are using lighttpd, all you need to do is to provide a link from your ${TMPDIR}/deploy/package-format directory to lighttpd's document-root. You can determine the specifics of your lighttpd installation by looking through its configuration file, which is usually found at: /etc/lighttpd/lighttpd.conf.

For example, if you are using IPK, lighttpd's document-root is set to /var/www/lighttpd, and you had packages for a target named "BOARD", then you might create a link from your build location to lighttpd's document-root as follows:

    # ln -s $(PWD)/tmp/deploy/ipk /var/www/lighttpd/BOARD-dir
                        

At this point, you need to start the lighttpd server. The method used to start the server varies by distribution. However, one basic method that starts it by hand is:

    # lighttpd -f /etc/lighttpd/lighttpd.conf