1 Running the Web Server
2 Scheme Servlets
3 Web Language Servlets
4 Configuration
5 Dispatchers
6 Web Config Unit
7 Web Server Unit
8 Continuation Managers
9 Internal
10 Troubleshooting
11 Acknowledgements
Index
On this page:
make
Version: 4.0.2

 

5.10 Virtual Hosts

 (require web-server/dispatchers/dispatch-host)

The web-server/dispatchers/dispatch-host module defines a dispatcher constructor that calls a different dispatcher based upon the host requested.

(make lookup-dispatcher)  dispatcher?

  lookup-dispatcher : (symbol? . -> . dispatcher?)

Extracts a host from the URL requested, or the Host HTTP header, calls lookup-dispatcher with the host, and invokes the returned dispatcher. If no host can be extracted, then 'none is used.