Told you, we love sharing!
I am using Varnish with Apache in one of my projects and i had a use case to allow admin panel only from few IPs. If you are using only Apache, You can easily do this by adding few rules in Apache and limit the access control, but in the case of Varnish, Apache will get only localhost IP instead of real client IP. You need to block these...
Fail2ban is a service that scans log files and ban IPs that shows malicious signs of multiple password failures, seeking for exploits, etc. It updates firewall rules to reject the IP addresses for a specified amount of time, although any arbitrary action (e.g. sending an email) can also be configured. Fail2Ban also comes with some out of...
I got a requirement from one of my clients to setup a staging server that has a HTTP authentication, behind an ELB. but because of authentication it fails in the ELB health check. I did the following steps to configure it with HTTP authentication. Create a single PHP or HTML file and disable HTTP authentication for this file. In the...
Auto Scaling is a service provided by Amazon Web Services which allows you to scale up or down your infrastructure horizontally by automatically adding or removing EC2 instances based on user-defined policies, health status checks or schedule. Lets start with some terminology before diving into specifics of auto scaling. Launch...
While working with the new AWS CLI, you might come up with a use case in which complex values are required as an input. To simplify things a bit AWS CLI allows you to pass JSON as an input to argument. For example, to pass parameters to the --block-device-mappings parameter in the aws ec2 create-image command, you need to format...
Elastic Load Balancer is a service provided by AWS that is used to distribute incoming application traffic across multiple EC2 instances and availability zones automatically. Elastic Load Balancer continuously monitors and detects unhealthy instances, after which it automatically re-routes all the traffic to healthy instances until the...