Skip to content

Instantly share code, notes, and snippets.

@salrashid123
Created December 30, 2018 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salrashid123/233f8117be04f37f6e1684bd73f390dc to your computer and use it in GitHub Desktop.
Save salrashid123/233f8117be04f37f6e1684bd73f390dc to your computer and use it in GitHub Desktop.
nginx site definition file for httpRequest proto logs (/etc/nginx/sites-enabled/default)
server {
listen 8080 default_server;
listen [::]:8080 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
location /_ah/health {
access_log off;
return 200 "ok\n";
}
location /backend {
proxy_pass https://nghttp2.org/httpbin/delay/2;
}
location / {
try_files $uri $uri/ =404;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment