This section describes the settings needed to integrate the TAO instance in your infrastructure.

Most of these settings can be set into the main configuration file located at:

config/generis.conf.php

or at

generis/common/config.php

Be careful with the configuration settings. The default configuration has been tested but you should test your TAO instance once you have changed the configuration parameters. The main reason is that all combinations haven’t been tested yet.

#### Common settings

define('DATABASE_LOGIN', true);
define('DATABSE_PASS', 'login');

• The URL to access TAO:

define('ROOT_URL', 'http://mydomain.tld');

• The path of TAO:

define('ROOT_PATH', '/var/www/');

#### HTTP Authentication

The following example outlines how to establish a Basic HTTP Authentication to protect all the TAO instances with one account.

# Edit the file: .htaccess at the root of the TAO folder.

# Add the following line at the beginning of the file (it’s important to do it before the rewriting rules):

AuthName "Protected Area"
AuthType Basic
Require valid-user

# Create the password file using the command listed below. You can create it in the directory you want but consider these 2 security restrictions:

• the directory (here /var/opt) must not be accessible via HTTP\ • the apache user (usually www-data) can read it, bot the other cannot

htpasswd -c login password

The htpasswd command is provided by Apache. You can have a look at documentation page .

define('USE_HTTP_AUTH', true);
define('USE_HTTP_PASS', 'password');