--- smsdaemon/embedded-http/embeddedhttp.cpp 2010/04/28 09:02:30 685 +++ smsdaemon/embedded-http/embeddedhttp.cpp 2010/04/28 09:23:07 686 @@ -71,6 +71,8 @@ m_context = mg_start(); mg_set_option(m_context, "ports", oss.str().c_str() ); + mg_set_option(m_context, "root", "/nosuchpatch"); //set root to non-existant path to disable normal file serving - only callbacks are now serviced + mg_set_uri_callback(m_context, "/", &show_index, 0); mg_set_uri_callback(m_context, "/status", &show_status, 0); mg_set_error_callback(m_context, 404, show_404, NULL);