On server to be Frontail-ed:
Download frontail from https://github.com/mthenw/frontail:
$ wget https://github.com/mthenw/frontail/releases/download/v4.9.0/frontail-linux
Move to /usr/local/bin/:
$ sudo mv frontail-linux /usr/local/bin/
Make it executable:
$ sudo chmod +x /usr/local/bin/frontail-linux
Run it daemonized (-d
):
$ /usr/local/bin/frontail-linux -d -U username -P password --url-path /frontail /var/log/syslog
...or under screen
:
$ screen
$ /usr/local/bin/frontail-linux -U username -P password --url-path /frontail /var/log/syslog
Ctrl-A, d
On the proxy server:
Edit the appropriate nginx config file:
$ sudo nano /etc/nginx/conf.d/server-config.conf
Add a new location
section in the server
section:
location /frontail {
proxy_pass http://ip-address-of-server:9001;
}
Check config and reload nginx if 'ok':
$ sudo service nginx configtest
$ sudo service nginx reload