Because links to images generates with /smokeping/, all configs use this path for static files and images.
Very simple, but main page not in /smokeping/, main page is http://smokeping.example.com/cgi-bin/smokeping.cgi
Partialy used content of /etc/nginx/fastcgi_params
, except of SCRIPT_FILENAME
.
Like big.conf
, but with redirect from wrong URLs to main page.
Replace here "smokeping.example.net" by your DNS name:
export MYSITENAME="smokeping.example.net"
sudo apt-get install smokeping fcgiwrap nginx
wget "https://github.com/vazhnov/smokeping_nginx/raw/master/best.conf"
sed -i -- s/smokeping\.example\.com/${MYSITENAME}/g best.conf
sudo chown root: best.conf
sudo mv best.conf /etc/nginx/sites-available/${MYSITENAME}.conf
sudo ln -s "../sites-available/${MYSITENAME}.conf" "/etc/nginx/sites-enabled/${MYSITENAME}.conf"
Distrubuted under CC0 1.0 license.