Refer to https://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html for details. Change-Id: Icd7cca752c8b87eb4543f0307bbf6e7ae07194b5 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
1.4 KiB
1.4 KiB
Installing API behind mod_wsgi
Install the Apache Service:
Fedora 21/RHEL7/CentOS7: sudo yum install httpd Fedora 22 (or higher): sudo dnf install httpd Debian/Ubuntu: apt-get install apache2Copy
etc/apache2/troveunder the apache sites:Fedora/RHEL7/CentOS7: sudo cp etc/apache2/trove /etc/httpd/conf.d/trove-api.conf Debian/Ubuntu: sudo cp etc/apache2/trove /etc/apache2/sites-available/trove-api.confEdit
<apache-configuration-dir>/trove-api.confaccording to installation and environment.- Modify the
WSGIDaemonProcessdirective to set theuserandgroupvalues to appropriate user on your server. - Modify the
WSGIScriptAliasdirective to point to the trove/api/app.wsgi script. - Modify the
Directorydirective to set the path to the Trove API code. - Modify the
ErrorLog and CustomLogto redirect the logs to the right directory.
- Modify the
Enable the apache trove site and reload:
Fedora/RHEL7/CentOS7: sudo systemctl reload httpd- Debian/Ubuntu:
-
sudo a2ensite trove sudo service apache2 reload