iphttpd

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/$sysname/namespace.httpd bind /sys/man /usr/web/plan9/sys/man bind /sys/doc /usr/web/plan9/sys/doc bind /usr/$user/www/$sysname /usr/web/$sysname

Replace $user and $sysname.

You may need to create the relevant directories:

cpu% mkdir -p /usr/web/plan9/sys/man /usr/web/plan9/sys/doc

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/


Last modified Mon Feb 16 23:00:25 PST 2026 [ Top | Edit | History | Changelog | Create a new page ] About the server | Powered by Plan 9