Domain Setup#
LocalDevStack creates domains and vhosts, when you run lds setup domain.
How lds setup domain works#
Run the interactive wizard.
Enable the selected profiles.
Bring the stack up and reload HTTP.
Wizard flow (what the user answers)#
lds setup domain runs an interactive 8-step flow:
Domain name
App type (PHP or NodeJs)
Runtime version (PHP Major.Minor, or Node major/tags)
Server type (PHP: Nginx or Apache; Node: Nginx forced + optional Node start command)
Protocol (HTTP only / HTTPS only / both + optional redirect)
Document root (relative path mapped under
/app)Client max body size
Mutual TLS toggle (only available when HTTPS is enabled; this requires client side certificate)
What it generates#
Vhost configs#
Writes generated vhost files:
Nginx vhost:
configuration/nginx/<domain>.confApache vhost (only when Apache mode is selected):
configuration/apache/<domain>.conf
TLS handling (HTTPS)#
If you select HTTPS in the wizard, after writing the HTTPS config; this generates/refreshes certificates for all known hosts.
See: TLS and Certificates
Node apps (optional)#
If you choose NodeJs app type:
It generates a Node compose fragment:
docker/extras/<token>.yaml
The token is derived from the domain (slugified).
This compose fragment defines a Node service (internal port is always 3000) and sets a profile like:
node_<token>
Tips#
Prefer a consistent domain scheme (e.g.,
project.localhost) so your routing stays predictable.After any vhost/cert changes,
ldswill runlds http reloadautomatically as part of setup; you can also run it manually when you edit configs yourself.