Configure Tideways In Apache Virtual Hosts

If you are running multiple PHP applications on a single Apache webserver, then you might want to configure them individually, using Apache virtual hosts (vhost). This is possible by either directly modifying the vhost configuration file, or through a .htaccess file, if this feature is enabled for the vhost. The following example, shows how to configure Tideways using both of these files.

SetEnv TIDEWAYS_APIKEY <YOUR_API_KEY>
SetEnv TIDEWAYS_SERVICE web
SetEnv TIDEWAYS_SAMPLERATE 25
Don’t forget to restart your webserver after making changes to the vhost configuration.

These three environment variables are the equivalent of the following INI variables, that you can configure in a PHP INI file:

  • tideways.api_key

  • tideways.service

  • tideways.sample_rate

Still need help? Email [email protected]