Webservice/API Apache setup - LabCollector

Search Knowledge Base by Keyword

You are here:
← All Topics

In order to use the short URLs with the API/Webservice you need to active and setup the APACHE mod_rewrite. Follow these steps:

  1. Open Apache settings (or httpd.conf)
    Note: htaccess is an Apache feature. That specific .htaccess requires mod_rewrite module in Apache to be loaded.
  2. Uncomment the line LoadModule rewrite_module modules/mod_rewrite.so
  3. Locate LabCollector directory and add the below settings:

    <Directory “/home/labcollector”>
    DirectoryIdex index.htm index.html index.php
    Options +Indexes
    AllowOverride All
    Require all granted
    allow from all

  4. Just adjust the directory path to one that you already have.
  5. RESTART APACHE/Webserver to apply settings
  6. Test the webservice. Remember to configure the remote application in LabCollector setup and use the proposed token