Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 812 Bytes

File metadata and controls

37 lines (27 loc) · 812 Bytes

Apache (mod_php)

  1. Pass the Aikido environment variables to PHP from your Apache virtual host configuration (or .htaccess)

/etc/apache2/sites-enabled/000-default.conf

<VirtualHost *:80>
    ...
    
    SetEnv AIKIDO_TOKEN "AIK_RUNTIME_..."
    SetEnv AIKIDO_BLOCK "False"

    ...

    <Directory "/var/www/html">
        ...
    </Directory>
</VirtualHost>

You can get your token from the Aikido Security Dashboard.

You can also use PassEnv if the environment is already configured at the system level.

<VirtualHost *:80>
    ...
    PassEnv AIKIDO_TOKEN
    PassEnv AIKIDO_BLOCK
    ...
</VirtualHost>
  1. Restart apache

(This command might differ on your operating system)

service apache2 restart