--- a/server/control_session_http.cpp +++ b/server/control_session_http.cpp @@ -41,11 +41,11 @@ " This webserver is a websocket endpoint for control clients (ws://host:1780/jsonrpc) and streaming clients" " (ws://host:1780/stream), but it can also host simple web pages. To serve a web page, you must configure the" " document root in the snapserver configuration file snapserver.conf, usually located in" - " /etc/snapserver.conf" + " @TERMUX_PREFIX@/etc/snapserver.conf" "

" "

" " The Snapserver installation should include a copy of Snapweb," - " located in /usr/share/snapserver/snapweb/
" + " located in @TERMUX_PREFIX@/share/snapserver/snapweb/
" " To activate it, please configure the doc_root as follows, and restart Snapserver to activate the changes:" "

" "
"
@@ -56,7 +56,7 @@
     "...\n"
     "\n"
     "# serve a website from the doc_root location\n"
-    "doc_root = /usr/share/snapserver/snapweb/\n"
+    "doc_root = @TERMUX_PREFIX@/share/snapserver/snapweb/\n"
     "\n"
     "#\n"
     "################################################
" @@ -241,7 +241,7 @@ if (settings_.doc_root.empty()) { - std::string default_page = "/usr/share/snapserver/index.html"; + std::string default_page = "@TERMUX_PREFIX@/share/snapserver/index.html"; struct stat buffer; if (stat(default_page.c_str(), &buffer) == 0) path = default_page;