Location-Based Reverse Proxying GrayLog2

In order to have greylog2 show up on a sub-location such as:

http://server.tld/greylog

the following configuration settings have to be made in /etc/greylog/server/server.conf:

rest_listen_uri = http://192.168.0.1:9000/graylog/api/
web_listen_uri = http://192.168.0.1:9000/graylog
web_endpoint_uri = http://192.168.0.1/graylog/api/

where:

Finally, Apache has to proxy the location-based URL by adding a location to the default configuration:

        # Graylog
        <Location /graylog>
                ProxyPreserveHost On
                ProxyPass http://192.168.0.1:9000/graylog
                ProxyPassReverse http://192.168.0.1:9000/graylog
        </Location>