wm: doc

Download patch

ref: b52b767eaf54b25687293a6ecd9e851cdbaf1b4f
parent: c7ee8b48cffceca6245f245a2e9abb80729a21c0
author: jrmu <jrmu@cloud9p.org>
date: Mon Oct 7 00:34:04 EDT 2024

Add instructions for running ip/httpd

--- /dev/null
+++ b/iphttpd.ms
@@ -1,0 +1,23 @@
+To set up httpd.ms, you will want to add this line in /cfg/$sysname/cpurc:
+
+ip/httpd/httpd -d $sysname -n /cfg/$sysname/namespace.httpd -w /usr/web/$sysname/
+
+Replace $sysname with your actual hostname. You will then need to create the directories
+in /usr/web/$sysname/:
+
+cpu% mkdir -p /usr/web/$sysname/
+
+Define the namespace for ip/httpd, consulting /lib/namespace.httpd as a template.
+
+Here is a sample namespace for /cfg/$sysname/namespace.httpd:
+
+cpu% cat /cfg/breadofgod.org/namespace.httpd
+bind /sys/doc /usr/web/sys/doc
+bind /usr/$user/www/$sysname /usr/web/$sysname
+
+Replace $user and $sysname.
+
+If you want to support TLS, make sure to first request a certificate with acmed.
+Then, add this line to /cfg/$sysname/cpurc:
+
+ip/httpd/httpd -c /sys/lib/tls/acmed/$sysname.crt -C /sys/lib/tls/acmed/$sysname.crt -d $sysname -n /cfg/$sysname/namespace.httpd -w /usr/web/$sysname/