How to Redirect HTTP to HTTPS in Nginx

All login credentials transferred over plain HTTP can easily be sniffed by a MITM attacker, but it is not enough to encrypt the login forms. If you are visiting plain HTTP pages while logged in, your session can be hijacked, and not even two-factor authentication will protect you. To protect all info sent between your visitors – which includes you – and your web server, we will redirect all requests that are coming over plain HTTP to the HTTPS equivalent....

October 12, 2019 · 1 min · 112 words · Akhil Jalagam

named bind server – adding multiple TXT records for the same domain

named bind server – adding multiple TXT records for the same domain

October 6, 2019 · 1 min · 12 words · Akhil Jalagam

apache2/httpd – IP based restriction to a virtual host

The Require provides a variety of different ways to allow or deny access to resources. In conjunction with the RequireAll, RequireAny, and RequireNone directives, these requirements may be combined in arbitrarily complex ways, to enforce whatever your access policy happens to be. example: ServerName example.net Documentroot /var/www/html/ <Location /> Require ip 192.168.0.0/24 10.0.0.2 </Location> </VirtualHost>

September 26, 2019 · 1 min · 55 words · Akhil Jalagam

linux swap memory limits – reference guide

Table 1: Recommended system swap space in Fedora 28 documentation {.wp-block-heading} Amount of system RAM Recommended swap space Recommended swap with hibernation less than 2 GB 2 times the amount of RAM 3 times the amount of RAM 2 GB – 8 GB Equal to the amount of RAM 2 times the amount of RAM 8 GB – 64 GB 0.5 times the amount of RAM 1.5 times the amount of RAM more than 64 GB workload dependent hibernation not recommended Table 2: Recommended system swap space per the author {....

September 25, 2019 · 1 min · 108 words · Akhil Jalagam

adminer setup script

Adminer (formerly phpMinAdmin) is a full-featured database management tool written in PHP. Conversely to phpMyAdmin, it consists of a single file ready to deploy to the target server. Adminer is available for MySQL, MariaDB, PostgreSQL, SQLite, MS SQL, Oracle, Firebird, SimpleDB, Elasticsearch, and MongoDB. install script

September 20, 2019 · 1 min · 46 words · Akhil Jalagam