
Create virtualenv for compass, point compass site packages to virtualenv, make virtualenv accessable for apache. Change compass executable scripts to use python in env to be virtualenv compatible. Make progress_update daemon use virtualenv. Comment out some health checks that use packages not available to pip, eg, yum, apt since we have other ways to check packages any way. Conflicts: conf/compassd install/compass.sh install/dependency.sh install/prepare.sh misc/apache/compass.wsgi requirements.txt Change-Id: Ib48633601bf238ffc660c4694834897edbe45e07
22 lines
531 B
Plaintext
22 lines
531 B
Plaintext
# Apache config for ods server
|
|
#
|
|
# Specify python path if you use virtualenv
|
|
|
|
WSGIDaemonProcess api threads=4 display-name=%{GROUP}
|
|
WSGIProcessGroup api
|
|
WSGIScriptAlias /api /var/www/compass/compass.wsgi
|
|
WSGISocketPrefix /var/run/wsgi
|
|
|
|
<VirtualHost *:80>
|
|
DocumentRoot /var/www/compass_web
|
|
RewriteRule ^/$ /ods/ods.html [R=301,L]
|
|
RewriteEngine on
|
|
RewriteRule ^/$ /ods/ods.html [R]
|
|
|
|
<Directory "/var/www/compass_web">
|
|
Options Indexes FollowSymLinks
|
|
Order allow,deny
|
|
Allow from all
|
|
</Directory>
|
|
</VirtualHost>
|