Skip to content

Instantly share code, notes, and snippets.

@salrashid123
Created December 30, 2018 17:57
Show Gist options
  • Save salrashid123/4a1c6eaf69234238c7a86a70f94f44bc to your computer and use it in GitHub Desktop.
Save salrashid123/4a1c6eaf69234238c7a86a70f94f44bc to your computer and use it in GitHub Desktop.
Apache site definition file for httpRequest proto logs (/etc/apache2/sites-enabled/000-default.conf)
<VirtualHost *:8080>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
SetEnvIf Request_URI "^/_ah/health$" dontlog
SSLProxyEngine on
ProxyPass /backend https://nghttp2.org/httpbin/delay/3
ProxyPassReverse /backend https://nghttp2.org/httpbin/delay/3
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined env=!dontlog
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment