Name
VHOST_REMOVE — remove a virtual host or virtual directory
Synopsis
Void DB.DBA.
VHOST_REMOVE
(
|
in vhost varchar , |
in lhost varchar , | |
in lpath varchar , | |
in
del_vsps
integer
) ; |
Description
vhost_remove
is used to remove virtual hosts and virtual paths on the Virtuoso HTTP server. Effectively this procedure deletes a row in the table
DB.DBA.HTTP_PATH
.
Virtuoso supports both flavours of virtual hosting: IP-based and name-based.
Parameters
vhost
A string containing the virtual host name that the browser presents as Host: entry in the request headers. i.e. Name-based virtual hosting. Default value as defined in the Virtuoso INI file.
lhost
A string containing the address of the network interface the Virtuoso HTTP server uses to listen and accept connections. Default value as defined in the Virtuoso INI file.
lpath
A string containing the path component of the URI for the logical path.
del_vsps
if a positive number will indicate to the server to drop all compilations of VSP files in this domain. Default value is 0.
Return Types
The return is VOID.
Examples
Example 24.443. Removing Virtual Host Definitions
SQL> VHOST_REMOVE (vhost=>'www.foo.com:8889', lhost=>'host.foo.com:8889', lpath=>'/appsimple');
Now, attempts to retrieve http://www.foo.com:8889/ will be rejected.
See Also
The Virtuoso Web Server Chapter in the Virtuoso Manual for discussion on this topic.