First of all, one needs to create the directory
where the web page lives.
For this, create the directory
/home/www/@PAGENAME@.
A symlink indicating domain and port is required
for tipidee,
replace @DOMAINNAME@
with the name of the domain the certificate is for.
The entire directory structure should belong to a user
specific to the webserver, here, www is proposed.
drwxr-x--- - www www /home/www lrwxrwxrwx - www www ├── @DOMAINNAME1@:80 -> @PAGENAME1@ lrwxrwxrwx - www www ├── @DOMAINNAME2@:80 -> @PAGENAME1@ lrwxrwxrwx - www www ├── @DOMAINNAME3@:80 -> @PAGENAME3@ drwxr-x--- - www www ├── @PAGENAME1@ drwxr-x--- - www www └── @PAGENAME3@
The web sites can then be create inside the
@PAGENAMEX@ directories.
Create the following longrun
source directory
in the src/web/tipidee-http-ip4-srv
subdirectory of the
system supervision tree.
tipideed-http-ipv4-srv ├── dependencies.d │ ├── mount # empty/arbitrary │ └── networking # empty/arbitrary ├── notification-fd # 3 ├── producer-for # tipideed-http-ipv4-log ├── run # see below └── type # longrun
with the following run script:
#!/bin/execlineb -P fdmove -c 2 1 s6-envuidgid www execline-cd /home/www fdmove 1 3 s6-tcpserver -1 -U -- @YOURIP@ 80 tipideed
Replace @YOURIP@
with the ip address of the server.
If desired repeat the process for IPv6,
the directory would then be
system/src/web/tipideed-http-ip6-srv
and producer-for
should contain tipideed-http-ip6-log.