Sysadmin.ID

  https://sysadmin.id

   



231 Stories by Sysadmin.ID

Reset root password on CentOS 7

Edit boot menu on-the-go 0. reboot the CentOS 7 and press ESC when GRUB menu show up on the screen and press “e”1. find...
0 18 sec read

Hide PHP-FPM Version on NGINX

Check PHP-FPM version on NGINX HTTP response $ curl -I localhost/index.php HTTP/1.1 200 OK Date: Sat, 12 Aug 2017 14:07:54 GMT Content-Type: text/html Connection:...
0 16 sec read

Hide Server Info Response on NGINX

How to hide `Server:` Response info on NGINX $ curl -I localhost HTTP/1.1 200 OK Server: nginx/1.4.6 (Ubuntu) Date: Fri, 11 Aug 2017 14:09:04...
0 26 sec read

Free ext4 reserved blocks with tune2fs

Check disk usage df -h Filesystem Size Used Avail Use% Mounted on /dev/vda1 95G 82G 7.9G 92% / Check size of Reserved block count...
0 19 sec read

Block or ban ip with NGINX

How to block ip with NGINX 0. define block ip on nginx.conf vim /etc/nginx/nginx.conf http { geo $ban_ip { default 0; include ban_ip.conf; }...
0 23 sec read

Send Xymon/Hobbit Alerts to Slack Channel

How to sent xymon/hobbit alerts to slack channel 0. create bash script to push xymon/hobbit alerts to slack vim /etc/xymon/scripts/alert_to_slack.sh #!/bin/bash hostname=$BBHOSTNAME level=$BBCOLORLEVEL msg=$BBALPHAMSG...
0 22 sec read

Redirect www and non-www http to non-www https on NGINX

How to set up redirect www and non-www http to non-www https o nginx config file vim /etc/nginx/sites-enabled/blackonsole.conf # http server { listen 80;...
0 16 sec read