www.openlinksw.com
docs.openlinksw.com

Book Home

Contents
Preface

Virtuoso Functions Guide

Administration
Aggregate Functions
Array Manipulation
BPEL APIs
Backup
Compression
Cursor
Date & Time Manipulation
Debug
Dictionary Manipulation
Encoding & Decoding
File Manipulation
Free Text
Hashing / Cryptographic
LDAP
Locale
Mail
Miscellaneous
Number
RDF data
Remote SQL Data Source
Replication
SOAP
SQL
String
Transaction
Type Mapping
UDDI
User Defined Types & The CLR
Virtuoso Java PL API
Virtuoso Server Extension Interface (VSEI)
Web Server & Internet
dav add & update fun...
dav lock manipulatio...
dav manipulation fun...
dav search functions
dav_exp
lfs_exp
serv_queue_top
urlrewrite_create_re...
vhost_define
vhost_remove
webdav users & group...
client_attr
connection_get
connection_id
connection_is_dirty
connection_set
connection_vars
connection_vars_set
dbname
ftp_get
ftp_ls
ftp_put
get_certificate_info
get_keyword
get_keyword_ucase
http
http_acl_get
http_acl_remove
http_acl_set
http_body_read
http_client
http_client_ext
http_client_ip
http_debug_log
http_enable_gz
http_file
http_flush
http_get
http_header
http_header_get
http_kill
http_listen_host
http_map_get
http_map_table
http_param
http_path
http_pending_req
http_physical_path
http_proxy
http_request_get
http_request_header
http_request_status
http_rewrite
http_root
http_url
http_value
http_xslt
ses_connect
ses_disconnect
ses_read_line
ses_write
tcpip_gethostbyaddr
tcpip_gethostbyname
vsp_calculate_digest
wsdl_import_udt
XML
XPATH & XQUERY

Functions Index

VHOST_REMOVE

remove a virtual host or virtual directory
Void DB.DBA.VHOST_REMOVE (in vhost varchar, in lhost varchar, in lpath varchar, in del_vsps integer);
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.

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.

Examples
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.

vhost_remove.