Enabling Web Server in Boot to Qt Image

When you want to enable a web server in the Boot to Qt software stack, there are several options as Yocto supports for example the following servers: Apache2, Cherokee, Hiawatha, Monkey, NGINX, Nostromo, and lighttpd.

Most of the recipes are available in the meta-openembedded/meta-webserver layer. You need to separately add the layer to the conf/bblayers.conf file to make the layer accessible from the build.

The lighttpd recipe is already available in the default build configuration. You can include it in the Boot to Qt image by adding following line to the conf/local.conf file:

IMAGE_INSTALL += "lighttpd"

After you have rebuilt the image, the web server runs on the default port 80 and serves the document-root from /www/pages/.

Available under certain Qt licenses.
Find out more.