Попытка настроить Elasticsearch+Logstash+Kibana с Apache 2.4.
-- Успешно установлен:
brew install elasticsearch logstash httpd24
- Включен модуль виртуальных хостов в /usr/local/etc/apache2/2.4/httpd.conf:
# Virtual hosts
Include /usr/local/etc/apache2/2.4/extra/httpd-vhosts.conf
а также
LoadModule vhost_alias_module libexec/mod_vhost_alias.so
- Создан виртуальный хост в /usr/local/etc/apache2/2.4/extra/httpd-vhosts.conf:
<VirtualHost *:8080>
ServerName kibana4.serv
ServerAlias www.kibana4.serv
DocumentRoot /usr/local/var/www/kibana-4.0.2-darwin-x64/src/public
<Directory /usr/local/var/www/kibana-4.0.2-darwin-x64/src/public>
Require all granted
Allow from all
Options -MultiViews
</Directory>
</VirtualHost>
- Создан новый конфиг для ELK /usr/local/etc/apache2/2.4/other/elk.conf:
LoadModule proxy_http_module /usr/local/opt/httpd24/libexec/mod_proxy_http.so
<Location /elasticsearch>
ProxyPass http://localhost:9200/
ProxyPassReverse /
SSLRequireSSL
</Location>
<Location /kibana/>
ProxyPass http://localhost:5601/
ProxyPassReverse /
SSLRequireSSL
</Location>
- Включен недавно созданный конфиг elk.conf в /usr/local/etc/apache2/2.4/httpd.conf:
Include /usr/local/etc/apache2/2.4/other/*.conf
НО, когда я пытаюсь перезапустить Apache, получая:
$ /usr/local/opt/httpd24/bin/httpd -D FOREGROUND
httpd: Syntax error on line 523 of /usr/local/etc/apache2/2.4/httpd.conf:
Syntax error on line 1 of /usr/local/etc/apache2/2.4/other/elk.conf:
Cannot load /usr/local/opt/httpd24/libexec/mod_proxy_http.so into server:
dlopen(/usr/local/opt/httpd24/libexec/mod_proxy_http.so, 10):
Symbol not found: _ap_proxy_cookie_reverse_map\n
Referenced from: /usr/local/opt/httpd24/libexec/mod_proxy_http.so\n
Expected in: flat namespace\n in /usr/local/opt/httpd24/libexec/mod_proxy_http.so
В чем проблема загрузки mod_proxy_http.so? Путь к модулю правильный ...