For example, you could use the following as a graylog vhost template for the apache2 charm:
```
$ cat ./graylog-vhost.tmpl
<Location "/">
RequestHeader set X-Graylog-Server-URL "http://{{servername}}/api/"
ProxyPass http://{{graylog_web}}/
ProxyPassReverse http://{{graylog_web}}/
</Location>
<Location "/api/">
ProxyPass http://{{graylog_api}}/api/
ProxyPassReverse http://{{graylog_api}}/api/
</Location>
```
Now deploy and configure apache2 as your graylog reverse proxy:
```
juju deploy apache2
juju config apache2 "vhost_http_template=$(base64 < graylog-vhost.tmpl)"
juju config apache2 "enable_modules='headers proxy_html proxy_http'"
juju expose apache2
juju relate apache2:reverseproxy graylog
```
Visit http://<apache2-public-ip> to access the Graylog interface.