Skip to content

Instantly share code, notes, and snippets.

@jpic
Created September 4, 2017 09:18
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 jpic/e01fad16942db9d170ab0bb4ede23d5b to your computer and use it in GitHub Desktop.
Save jpic/e01fad16942db9d170ab0bb4ede23d5b to your computer and use it in GitHub Desktop.
Xymon behind Nginx on ubuntu, requires fcgiwrap to be started
server {
listen 80;
server_name xymon.bd.yourlabs.org;
auth_basic "Admin-Section";
auth_basic_user_file /etc/nginx/.htpasswd;
location /xymon/ {
alias /usr/lib/xymon/server/www/ ;
index index.html ;
}
location /xymon-cgi/ {
fastcgi_pass unix:/var/run/fcgiwrap.socket;
# Fastcgi parameters, include the standard ones
include /etc/nginx/fastcgi_params;
# Adjust non standard parameters (SCRIPT_FILENAME)
fastcgi_param SCRIPT_FILENAME /usr/lib/xymon/cgi-bin$fastcgi_script_name;
# fastcgi_param DOCUMENT_ROOT /usr/lib/xymon/cgi-bin/;
# fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
location /cgi-secure/ {
alias /usr/lib/xymon/cgi-secure/ ;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment