<% unless [443, 80].include?(scope.lookupvar("openstack_health::api::vhost_port").to_i) %> Listen <%= scope.lookupvar("openstack_health::api::vhost_port") %> <% end %> WSGIPythonHome <%= scope.lookupvar("openstack_health::api::virtualenv_dir") %> > ServerName <%= scope.lookupvar("openstack_health::api::vhost_name") %> ServerAdmin <%= scope.lookupvar("openstack_health::api::server_admin") %> LogLevel info CustomLog ${APACHE_LOG_DIR}/openstack-health-api-access.log combined ErrorLog ${APACHE_LOG_DIR}/openstack-health-api-error.log WSGIDaemonProcess flask user=openstack_health group=openstack_health threads=5 home=<%= scope.lookupvar("openstack_health::api::source_dir") %> WSGIScriptAlias / <%= scope.lookupvar("openstack_health::api::virtualenv_dir") %>/bin/openstack-health /bin> WSGIProcessGroup flask WSGIApplicationGroup %{GLOBAL} WSGIScriptReloading On Order allow,deny Allow from all = 2.4> Require all granted <% if @operatingsystem == "Ubuntu" and @operatingsystemrelease == "12.04" %> <% else %> <% end %> CacheRoot "/var/cache/apache2/mod_disk_cache" CacheEnable disk "/" CacheDirLevels 5 CacheDirLength 3 CacheLock on DocumentRoot <%= scope.lookupvar("openstack_health::api::api_dir") %>