Created
May 30, 2015 19:26
-
-
Save imkarthikk/44f17c2a67c966c5eb87 to your computer and use it in GitHub Desktop.
nginx configuration for monit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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