Skip to content

Instantly share code, notes, and snippets.

@vladak
Last active May 26, 2023 12:26
Show Gist options
  • Save vladak/acb806a0f64d4c5b34009e9acf255c17 to your computer and use it in GitHub Desktop.
Save vladak/acb806a0f64d4c5b34009e9acf255c17 to your computer and use it in GitHub Desktop.
Apache reverse proxy configuration for OpenGrok
LoadModule proxy_module libexec/mod_proxy.so
LoadModule proxy_http_module libexec/mod_proxy_http.so
# Assuming OpenGrok was deployed to /source and the application server listens for plain HTTP on port 8080.
<IfModule mod_proxy.c>
# The number of seconds Apache httpd waits for data sent by / to the backend.
# This should match the `interactiveCommandTimeout` setting in OpenGrok.
ProxyTimeout 600
ProxyPass /source/ http://localhost:8080/source/
ProxyPass /source http://localhost:8080/source/
ProxyPassReverse /source/ http://localhost:8080/source/
ProxyPassReverse /source http://localhost:8080/source/
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment