The virtual server functions provide routines for retrieving information about virtual servers.
request_get_vs finds the virtual server to which a request is directed.
vs_alloc_slot allocates a new slot for storing a pointer to data specific to a certain virtual server.
vs_get_data finds the value of a pointer to data for a given virtual server and slot.
vs_get_default_httpd_object obtains a pointer to the default (or root) object from the virtual server's virtual server class configuration.
vs_get_doc_root finds the document root for a virtual server.
vs_get_httpd_objset obtains a pointer to the virtual server class configuration for a given virtual server.
vs_get_id finds the ID of a virtual server.
vs_get_mime_type determines the MIME type that would be returned in the content-type: header for the given URI.
vs_lookup_config_var finds the value of a configuration variable for a given virtual server.
vs_register_cb allows a plug-in to register functions that will receive notifications of virtual server initialization and destruction events.
vs_set_data sets the value of a pointer to data for a given virtual server and slot.
vs_translate_uri translates a URI as though it were part of a request for a specific virtual server.