Home  Contents

httpd:setPath

Httpd Core4 Lua Event System

SYNOPSIS

httpd:setPath(path)

DESCRIPTION

Sets the path of the server root directory.

When a client requests a file, all files are returned relative to the server root directory. If the file is not found there, the request fails with a 404 error.

The server root is usually at /usr/lib/htdocs. The files are created by the application developer.