Skip to content

Instantly share code, notes, and snippets.

@IcaroBichir
Created March 1, 2016 17:40
Show Gist options
  • Save IcaroBichir/c3db60e08e34f86c47a0 to your computer and use it in GitHub Desktop.
Save IcaroBichir/c3db60e08e34f86c47a0 to your computer and use it in GitHub Desktop.
nginx configuration file for monit user interface
server {
listen 80;
server_name monit.yourdomain.net;
return 301 https://monit.yourdomain.net$request_uri;
}
server {
listen 443 ssl;
server_name monit.yourdomain.net;
location / {
proxy_pass http://localhost:2812;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment