Config 1.2: Global Properties

Names

You can assign your own variable names, which appear either in URL query or in program code.

 

Role_name         default:"role"

The role is usually passed in the URL. In case, use this to pass it in query. E.g. role=admin.

 

Tag_name          default:"tag"

The mime tag is usually passed in the URL. In case, use this to pass it in query.

 

Component_name    default:"component"

The component name is usually passed in the URL. In case, use this to pass it in query.

 

Action_name       default:"action"

Variable for action. E.g. you can define it to be verb and pass this: verb=topics.

 

The following names are related to logins.

 

Login_name        default:"login"

If the component name in the URL is this login name, we interpret it as a login request.

 

Logout_name       default:"logout"

If the component name in the URL is this logout name, we interpret it as a logout request.

 

Provider_name     default:"provider"

Name for login issuer. E.g. provider=google.

 

Go_uri_name       default:"go_uri"

When visitor hits a protected page, she would be redirected to the login screen. The original URL will be assigned to variable go_uri. After login, she would be redirected to this address.  You can customize this name.

 

Go_probe_name     default:"go_probe"

Some browsers block session cookie. A probing cookie of this name will be used to detect if this is the case.

 

Go_err_name       default:"go_err"

Name to record failed login code.

 

Variables

 

(NAME)            (DEFAULT)  (EXAMPLE)
Document_root     NA         "/home/user1/www"

The root directory for “index.html”. If you run the help command, this will be setup for you.

 

Project           NA         "myproject"

Your project name. It is the same as the one you passed as “–project=” in the help command.

 

Script            NA         "/cgi-bin/myscript"

The name of HANDLER as a relative URL path. It is the same as the one you passed as “–script=” in the help command.

 

Pubrole           NA         "pubic"

Name of the public role.

 

Secret            NA         "abcdefghijkABC01234!@#$%^&*()"

A secret string used for SHA1 in digital signature, whenever it is necessary. One of the cases is to sign a query string.

Comments are closed.