Araneida understands the HTTP/1.1 Host header, to support multiple `virtual servers' in the same instance. Before you can export any handlers, you need to decide the hostnames that you plan to serve content from, and register them with Araneida
# Note: You cannot just invent host names and hope they work. The name you # define here must be a valid DNS name for your host. If you don't understand # this, ask your network administrator. -- Rob McCool, Apache httpd.conf
Syntax:
export-server server
Arguments and Values:
server - a SERVER object. See server-class.lisp for details
Description:
Registers server with Araneida, so that we know how to answer requests for it. The same registration list is also used for output-apache-conf
Note that the name and port in the server's BASE-URL slot don't have to be the same as in PORT and NAME. NAME and PORT give the address that Araneida will start a server on, whereas BASE-URL is the server's published address. If you're using a forwarding proxy (recommended for production sites), you should configure the proxy to answer for BASE-URL and forward requests onto Araneida on HOST:PORT
You can see this in ../examples/main.lisp which works with Apache on port 80 and Araneida on port 8000