From b314eeff3dd14f046a18305ccd68371108936244 Mon Sep 17 00:00:00 2001
From: Ingela Anderton Andin
The configuration of the server is provided as an erlang property list, and for backwards compatibility also a configuration @@ -478,170 +477,9 @@ http://your.server.org/eval?httpd_example:print(atom_to_list(apply(erlang,halt,[
[date] access to path failed for remotehost, reason: reason
- -Server Side Includes enables the server to run code embedded - in HTML pages to generate the response to the client.
-Having the server parse HTML pages is a double edged sword! - It can be costly for a heavily loaded server to perform - parsing of HTML pages while sending them. Furthermore, it can - be considered a security risk to have average users executing - commands in the name of the Erlang node user. Carefully - consider these items before activating server-side includes.
-The server must be told which filename extensions to be used
- for the parsed files. These files, while very similar to HTML,
- are not HTML and are thus not treated the same. Internally, the
- server uses the magic MIME type
- text/x-server-parsed-html shtml shtm --
This makes files ending with
- text/x-server-parsed-html html htm --
All server-side include directives to the server are formatted - as SGML comments within the HTML page. This is in case the - document should ever find itself in the client's hands - unparsed. Each directive has the following format: -
-- <!--#command tag1="value1" tag2="value2" --> --
Each command takes different arguments, most only accept one - tag at a time. Here is a breakdown of the commands and their - associated tags: -
-The config directive controls various aspects of the - file parsing. There are two valid tags: -
-controls the message sent back to the client if an - error occurred while parsing the document. All errors are - logged in the server's error log.
-determines the format used to display the size of
- a file. Valid choices are
The include directory - will insert the text of a document into the parsed - document. This command accepts two tags:
-gives a virtual path to a document on the - server. Only normal files and other parsed documents can - be accessed in this way.
-gives a pathname relative to the current
- directory.
The echo directive prints the value of one of the include
- variables (defined below). The only valid tag to this
- command is
The fsize directive prints the size of the specified
- file. Valid tags are the same as with the
The lastmod directive prints the last modification date of
- the specified file. Valid tags are the same as with the
-
The exec directive executes a given shell command or CGI - script. Valid tags are:
-executes the given string using
executes the given virtual path to a CGI script and - includes its output. The server does not perform error - checking on the script output.
-A number of variables are made available to parsed - documents. In addition to the CGI variable set, the following - variables are made available: -
-The current filename.
-The virtual path to this document (such as
-
The unescaped version of any search query the client
- sent, with all shell-special characters escaped with
-
The current date, local time zone.
-Same as DATE_LOCAL but in Greenwich mean time.
-The last modification date of the current document.
-The process of handling a HTTP request involves several steps such as:
@@ -907,28 +745,6 @@ start() ->This module makes it possible to expand "macros" embedded in - HTML pages before they are delivered to the client, that is - Server-Side Includes (SSI). -
-Uses the following Erlang Webserver API interaction data: -
-Exports the following Erlang Webserver API interaction data: -
-Standard logging using the "Common Logfile Format" and text -- cgit v1.2.3