Replace the IP addresses with your IP addresses Modify your config file to look like this When done you need to test the config You should see something like nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful Reference: https://www.nginx.com/blog/load-balancing-dns-traffic-nginx-plus/
Category: Code
This area of the site is dedicated to code snippets for quick and easy reference
UNIX – List USB Devices With lsusb
On the Mac “lsusb -v” is rather clean in comparison to other systems.
UNIX – Start Service If Not Running
Currently this script is developed for my Raspberry Pi (Debian, Raspbian) but in time I will have it working for RHEL (Red Hat, CentOS, Fedora). In the example above I’m checking if OpenVPN is running, if it is not running it will start the service. I set this script up…
Debian/Ubuntu LAMP Setup
The following code is for Debian 9 Stretch but should work on older Debian with minor changes
Mac OSX Terminal – Rename TTF/OTF Fonts
If you have ever received a list of fonts from a client where the font names didn’t make sense this code below will help. Caution: Backup your fonts directory just in case.
UNIX – Set SSH Banner
Obviously it will be slightly different depending on your network and version but it will look something like this. Kittell.net WARNING This computer system is the property of Kittell.net. It may be accessed and used only for authorized Kittell.net business by authorized personnel. Unauthorized access or use of this computer…
OpenSSL – Decode/Read CSR
Sometimes you when a SSL CSR isn’t named properly you need to get the details of it, the code below will help. Note: Depending on version and OS the placement numbers (-f5 for example) may be slightly off. Once you have created the shell script call to it with the…
Ubuntu – Remove Preloaded Applications
Installing Ubuntu for a server OS? The code below will remove some of the preloaded applications that are needed on a server. Arguably you could remove Gnome in general and all Gtk but that depends on how you want to run your server.