Web server defaults

Default paths make a conventional install work before customization.

Target guide

A default installation assumes configuration in /etc/lairu/config/, sockets in /run/lairu/, sessions in /var/lib/lairu/sessions, and web files in /var/www/html. A portable installation can also read config/ beside the binary.

Prefer changing these values in the ini file when a site moves, and reserve command-line overrides for tests, temporary processes, and one-off local serving.

Examples

Working pattern

1[paths]2config_dir = /etc/lairu/config3socket_dir = /run/lairu4session_dir = /var/lib/lairu/sessions5document_root = /var/www/html
Use this as a focused starting point and adapt it in context.

Default filesystem layout

1/etc/lairu/config/       # ini files2/run/lairu/              # sockets and runtime files3/var/lib/lairu/sessions/ # session storage4/var/www/html/           # default document root
These defaults are deliberately conventional and can be changed in the .ini file.

Related