Skip to content

Instantly share code, notes, and snippets.

@rrichards
Forked from VeggieMeat/Sensu Dashboard Nginx Vhost
Last active August 29, 2015 14:06
Show Gist options
  • Save rrichards/52dcbd28ad2624c6d872 to your computer and use it in GitHub Desktop.
Save rrichards/52dcbd28ad2624c6d872 to your computer and use it in GitHub Desktop.
upstream sensu_dashboard {
server 127.0.0.1:8080;
}
server {
listen *:80 ;
server_name sensu.example.com;
access_log /var/log/nginx/sensu.example.com.access.log;
location / {
try_files $uri @sensu_dashboard;
}
location @sensu_dashboard {
proxy_pass http://sensu_dashboard;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment