wm: doc

ref: 33cc7d340408417e190d705a99366713083e6798
dir: /iphttpd.ms/

View raw version
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/