Eu descomentei no httpd.conf:
LoadModule proxy_module libexec/mod_proxy.so
Tentando configurar o Elasticsearch + Logstash + Kibana com o Apache 2.4.
- instalado com sucesso:
brew install elasticsearch logstash httpd24
- Módulo de hosts virtuais ativado em /usr/local/etc/apache2/2.4/httpd.conf:
# Virtual hosts
Include /usr/local/etc/apache2/2.4/extra/httpd-vhosts.conf
e
LoadModule vhost_alias_module libexec/mod_vhost_alias.so
- Host virtual criado em /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>
- Nova configuração criada para o 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>
- Incluiu a configuração recém-criada elk.conf para /usr/local/etc/apache2/2.4/httpd.conf :
Include /usr/local/etc/apache2/2.4/other/*.conf
MAS quando tento reiniciar o 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
Qual é o problema ao carregar o mod_proxy_http.so? O caminho para o módulo está correto ...