Hi ,
I am following instruction http://docs.graylog.org/en/2.4/pages/configuration/web_interface.html#making-the-web-interface-work-with-load-balancers-proxies, to setup Dockerized Graylog with Apache Reverse Proxy. However I am unable to make it work:
OHS Config:
<VirtualHost *:7777>
ServerName example.com
RewriteEngine On
RewriteOptions inherit
UseCanonicalName On
RewriteRule ^/$ /(different prefex) [R]<Location /graylog> RequestHeader set X-Graylog-Server-URL "http://example.com/api/" ProxyPass http://SERVER_HOSTNAME:9000/ ProxyPassReverse http://SERVER_HOSTNAME:9000/ </Location>
Docker Compose config:
graylog:
image: graylog:latest
container_name: graylog
environment:
- GRAYLOG_PASSWORD_SECRET= <SECRET>
-GRAYLOG_ROOT_PASSWORD_SHA2= <KEY>
- GRAYLOG_WEB_ENDPOINT_URI=http://example.com:9000/api
- GRAYLOG_ELASTICSEARCH_HOSTS=http://elasticsearch:9200
- GRAYLOG_ROOT_TIMEZONE=US/Eastern
- "DISABLE_TELEMETRY: '1'"
- GRAYLOG_ROTATION_STRATEGY=time
- GRAYLOG_ELASTICSEARCH_MAX_TIME_PER_INDEX=1d
- GRAYLOG_MAX_NUMBER_OF_INDICES=20
links:
- mongodb:mongo
- elasticsearch
depends_on:
- mongodb
- elasticsearch
expose:
- 9000
ports:
- 9000:9000
- 514:514
- 514:514/udp
- 1513:1513
- 1513:1513/udp
- 12900:12900
- 12900:12900/udp
I still can’t reach http://example.com/graylog. Any help would be appreciated