2.12 Virtual Hosts

► |  | Web Server: HTTP Server

1 | Dispatching Server
2 | Dispatchers
3 | Launching Servers
4 | Web Servers
5 | Internal APIs
6 | Troubleshooting and Tips
| Index

▼ | 2 | Dispatchers

2.1 | General
2.2 | Mapping URLs to Paths
2.3 | Sequencing
2.4 | Timeouts
2.5 | Lifting Procedures
2.6 | Filtering Requests by URL
2.7 | Filtering Requests by Method
2.8 | Procedure Invocation upon Request
2.9 | Logging
2.10 | Basic Logging
2.11 | Password Protection
2.12 | Virtual Hosts
2.13 | Serving Files
2.14 | Serving Servlets
2.15 | Statistics
2.16 | Limiting Requests
2.17 | Wrapping Requests & Responses

On this page:

make

top contents ← prev up next →

#### 2.12`` Virtual Hosts🔗ℹ

(require web-server/dispatchers/dispatch-host)
| package: web-server-lib

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

> procedure (make lookup-dispatcher) → dispatcher/c
> lookup-dispatcher : (symbol? . -> . dispatcher/c)

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.
top contents ← prev up next →