How to Redirect HTTP to HTTPS in apache

Install modules Enable modules Method 1 using rewrite module RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] </VirtualHost> Method 2 using redirect method Redirect permanent / https://www.yourdomain.com/ </VirtualHost>

September 4, 2019 · 1 min · 29 words · Akhil Jalagam

How to use HiDPI(4K) resolution in Linux for all applications

HiDPI (High Dots Per Inch) displays, also known by Apple’s “Retina Display” marketing name, are screens with a high resolution in a relatively small format. They are mostly found in high-end laptops and monitors. update this ~/.Xresources Xft.dpi: 240 reboot or re-login to system

September 2, 2019 · 1 min · 44 words · Akhil Jalagam

How to RESET/FLUSH/DELETE all iptables in Linux

Take backup Flush now Again to restore from backup

September 2, 2019 · 1 min · 9 words · Akhil Jalagam

How to set up Reverse Proxy in Apache/httpd

Install and enable apache2 proxy modules proxies all requests (“/”) to a single backend: to point to the reverse proxy, instead of back to itself, the ProxyPassReverse directive is most often required: Only specific URIs can be proxied Example ServerName example.net Documentroot /var/www/html/ ProxyPass “/” “http://www.example.com/" ProxyPassReverse “/” “http://www.example.com/" ...

September 2, 2019 · 1 min · 50 words · Akhil Jalagam

How To Redirect www to non-www OR non-www to www with Apache

1. Configure DNS Records In order to set up the desired redirect, www.example.com to example.com or vice versa, you must have an A record for each name. 2. Enable the mod_rewrite module 3.1 Update site.conf or .htaccess file ( www to non-www) 3.2 Update site.conf or .htaccess file ( non-www to www) Example ServerName example.net Documentroot /var/www/html/ ...

August 31, 2019 · 1 min · 67 words · Akhil Jalagam