In the most common configurations, when running your web app behind Nginx or Apache, your https:// request will get redirected to http://. Sometimes, you may want to rewrite all HTTP requests to HTTPS. The Amazon Elastic Load Balancer (ELB) supports a HTTP header called X-FORWARDED-PROTO. All the HTTPS requests going through the ELB will have Full Article…
Nginx – Fixing 502 bad gateway
Many times we can browse the web and find a 502 bad gateway error at Nginx. There are a few reasons why you will find this message in your webserver log, and here we will teach you how to fix it. When you will find 502 bad gateway error: Nginx running as proxy for Full Article…
cPanel – logs for access, Apache, email, error, ftp, mysql, and WHM
cPanel logs most activity that happens on a server to log files so you can go back and review log entries for problems, instead of having to be on the server at the time of them happening. This guide will cover the locations of the log files for things such as access logs, Apache web Full Article…
SSL – v3 goes to the dogs – POODLE kills off protocol
Over the past week, rumours were circulating about a new vulnerability in SSLv3. No details were widely available until today and now we have POODLE, the ‘Padding Oracle On Downgraded Legacy Encryption’ attack. The attack, specifically against the SSLv3 protocol, allows an attacker to obtain the plaintext of certain parts of an SSL connection, such Full Article…
Gmail – How to unlock captcha and enable less secure apps
If you want to use Gmail to send email for your website, you will need to use SMTP to configure Gmail as a sender. But your functions can’t log in Gmail, because the security options in Gmail. You need to unlock it if you want to use Gmail for your website. Here is the steps: Full Article…
AWS SES – Moving out of the sandbox
To help protect our customers from fraud and abuse and to help you establish your trustworthiness to ISPs and email recipients, we do not immediately grant unlimited Amazon SES usage to new users. New users are initially placed in the Amazon SES sandbox. In the sandbox, you have full access to all Amazon SES email-sending Full Article…
How to integrate Amazon SES with Postfix
A. First method: Postfix was created as an alternative to the widely used Sendmail MTA. For information about Postfix, go tohttp://www.postfix.org. These instructions were tested on a 64-bit Amazon EC2 instance using the following Amazon Machine Image (AMI), which is based on Red Hat: Amazon Linux AMI 2014.09.2 (HVM) (ami-146e2a7c). To launch an Amazon EC2 Full Article…
Postfix: change sender in sending messages
Postfix: how to change change sender address in sending messages? Here is the answer, it will rewrite old-address to new-address automatically. You can define file to maps old-address to new-address. /etc/postfix/main.cf: smtp_generic_maps = hash:/etc/postfix/generic /etc/postfix/generic: [email protected] [email protected] Don’t forget to postmap /etc/postfix/generic and run postfix reload Upside: You doesn’t need to requeue the message Downside: Full Article…
Centos – How to know the folder size
Under any Linux system, you want to use the command du. (Disk Usage) Common usage is : du -sh file(s) name(s) or du -sh /path/to/dir/* Replace ‘h’ by ‘k’,’m’ or ‘g’ for Kilobytes, Megabytes and Gigabytes instead of human-readable. With k/m/j switches, you can even pipe the output un sort -n (numeric sort instead of Full Article…
Minimum number of PHP modules needed to run Magento
The Magento requirements check is a decent script to run to confirm your server meets the requirements (you need to change the opening PHP tag to <?php if your server doesn’t support short open tags), and if you open it is has a list of PHP extensions needed, which it lists as: curl dom gd Full Article…