【发布时间】:2018-08-20 02:17:57
【问题描述】:
我正在尝试在 Ubuntu 16.04 上安装 ARA (https://github.com/openstack/ara) 以监控我的 Ansible playbook 执行情况。
我仔细阅读文档 (http://ara.readthedocs.io/en/latest/webserver.html#debian-ubuntu),但每次测试时我都会被重定向到 http://ara.home.lab/about
这是我的配置文件:
Apache 虚拟主机:
cat /etc/apache2/sites-available/ara.conf
<VirtualHost *:80>
# Replace ServerName by your hostname
ServerName ara.home.lab
ErrorLog /var/log/apache2/ara-error.log
LogLevel warn
CustomLog /var/log/apache2/ara-access.log combined
WSGIDaemonProcess ara user=www-data group=www-data processes=4 threads=1
WSGIScriptAlias / /var/www/ara/ara-wsgi
SetEnv ANSIBLE_CONFIG /var/www/ara/ansible.cfg
<Directory /var/www/ara>
WSGIProcessGroup ara
WSGIApplicationGroup %{GLOBAL}
Require all granted
</Directory>
</VirtualHost>
Ansible 配置文件:
cat /var/www/ara/ansible.cfg
[defaults]
# This directory is required to store temporary files for Ansible and ARA
local_tmp = /var/www/ara/.ansible/tmp
[ara]
# This will default the database and logs location to be inside that directory.
dir = /var/www/ara/.ara
虚拟主机目录:
$ pwd
/var/www/ara
$ ls -la
total 24
drwxr-xr-x 4 www-data www-data 4096 Mar 12 00:15 .
drwxr-xr-x 7 root root 4096 Mar 11 23:59 ..
drwxrwx--- 3 www-data www-data 4096 Oct 27 17:00 .ansible
-rw-r--r-- 1 www-data www-data 234 Oct 27 16:57 ansible.cfg
drwx------ 2 www-data www-data 4096 Mar 12 00:15 .ara
-rwxr-xr-x 1 www-data www-data 1804 Mar 11 01:08 ara-wsgi
到目前为止,我无法从应用程序中找到任何告诉我有问题的日志。
你能帮帮我吗?
【问题讨论】:
标签: ubuntu ansible mod-wsgi wsgi apache2.4