Nginx Redirect

Nginx Redirect

Redirect site from www to non-www How to redirect a domain with html extension in Nginx Nginx Redirect HTTP to

ufw

ufw

ufw is firewall in Ubuntu. To enable systemctl enable ufw To list available apps, run ufw app list To see

PowerDNS

PowerDNS

Install PowerDNS Install PowerDNS on Ubuntu 20.04 PowerDNS Command line List all DNS Zones pdns_control list-zones pdns_control list-zones slave Delete

gcloud

gcloud

Detach a disk from Google Compute Instance Install Google Cloud SDK Google Cloud apt signatures couldn’t be verified Google Cloud

Detach a disk from Google Compute Instance

Detach a disk from Google Compute Instance

To remove a disk from Google Compute instance, run gcloud compute instances detach-disk INSTANCE_NAME –disk=DISK Example Here “indiameds” is name

btc

btc

See crypto-currency

varnish

varnish

How to change varnish port in Ubuntu To clear cache, run /usr/bin/varnishadm -S /etc/varnish/secret -T 127.0.0.1:6082 “ban req.http.host ~ .*”

proxy

proxy

Squid ShadowSocks Tor Reverse proxy proxychains Web Proxy debugging proxy Install mitmproxy proxy OWASP Zed Attack Proxy Project https://www.telerik.com/fiddler https://portswigger.net/burp

install sysstat on centos

install sysstat on centos

To install sysstat/sar on CentOS, run yum install sysstat Enable and start sysstat systemctl enable sysstat systemctl start sysstat systemctl

Amazon RDS ERROR 1040 (08004): Too many connections

Amazon RDS ERROR 1040 (08004): Too many connections

On an Amazon RDS Aurora data base, when i connect, i get error root@ip-10-0-0-234:/var/www/html# mysql -h sok.cb21y0qmezhd.us-west-2.rds.amazonaws.com -u sok_wp -p0ZEkrkQx

hdd

blkidChecking NVMe DiskNo space left on devicesmartctlsfdiskSetup ZFS file system in UbuntuResize Amazon EC2 Boot DiskPartitioning hard disk for backupResize

No space left on device

No space left on device

On a server, when creating new files, i get error – “No space left on device”. root@sok:~# touch 2 touch: