Installing API behind mod_wsgi

Installing API behind mod_wsgi

  1. Install the Apache Service:

    Fedora 21/RHEL7/CentOS7:
      sudo yum install httpd
    Fedora 22 (or higher):
      sudo dnf install httpd
      apt-get install apache2
  2. Copy etc/apache2/watcher.conf under the apache sites:

      sudo cp etc/apache2/watcher /etc/httpd/conf.d/watcher.conf
      sudo cp etc/apache2/watcher /etc/apache2/sites-available/watcher.conf
  3. Edit <apache-configuration-dir>/watcher.conf according to installation and environment.

    • Modify the WSGIDaemonProcess directive to set the user and group values to appropriate user on your server.
    • Modify the WSGIScriptAlias directive to point to the watcher/api/app.wsgi script.
    • Modify the Directory directive to set the path to the Watcher API code.
    • Modify the ErrorLog and CustomLog to redirect the logs to the right directory.
  4. Enable the apache watcher site and reload:

      sudo systemctl reload httpd

    sudo a2ensite watcher sudo service apache2 reload

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.