NaviServer - programmable web server

[ Main Table Of Contents | Table Of Contents | Keyword Index ]

ns_locationproc(n) 4.99.19 naviserver "NaviServer Built-in Commands"

Name

ns_locationproc - Register custom location handler

Table Of Contents

Synopsis

Description

This command installs custom script which will return location string for the current connection, as returned by ns_conn location. Usually the locations looks like http://localhost/.

COMMANDS

ns_locationproc script

script Tcl script which result will be used to return the location string.

EXAMPLES

  ns_locationproc   nstest::location arg
  proc nstest::location {args} {
      return "testlocation.$args"
  }

See Also

ns_conn, ns_serverrootproc

Keywords

global built-in, hosting, redirect, virtual