Skip to content

Instantly share code, notes, and snippets.

@imkarthikk
Created May 30, 2015 19:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imkarthikk/44f17c2a67c966c5eb87 to your computer and use it in GitHub Desktop.
Save imkarthikk/44f17c2a67c966c5eb87 to your computer and use it in GitHub Desktop.
nginx configuration for monit
server {
listen 80 default_server;
server_name 192.168.10.69;
location /monit/ {
allow 127.0.0.1;
allow 192.0.0.0/8;
deny all;
proxy_pass http://127.0.0.1:2812;
proxy_set_header Host $host;
rewrite ^/monit/(.*) /$1 break;
proxy_ignore_client_abort on;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment