Mass Virtual Hosting
El cheapo
virtual hosting: Dynamically select the
serverdir
based on the Host header, allowing on-the-fly deployment of new domains.
- How?
-
-
ns_serverrootproc - Register a script in a server to determine the
serverdir -
vhostcertificates - nsssl module configuration selecting/mapping certificates to servers
-
- Example:
-
8 DNS entries point to the demo server.
Two of them don't have their own server section in the config:
tclandtk. -
-
See the nsssl configuration snippet and the
vhostcertificatesdirectory . - See the ns_serverrootproc configuration snippet and the virtual host base directory.
- Or introspect via the nsstats module.
-
See the nsssl configuration snippet and the