How to Fix Laravel HTTPS Redirect Loop on Amazon Elastic Beanstalk/Load Balancer/Proxy

If you are forcing HTTPS on routes in Laravel but are having issues with a redirect loop and your app is behind a proxy, load balancer, or something like Elastic Beanstalk, try adding this to your .htaccess file: #Fixes HTTPS Redirect Loop SetEnvIfNoCase X-FORWARDED-PROTO “^https$” HTTPS Many load balancers will accept HTTPS traffic and forward […]

Dynamically Generate and Replace HTML5 canvas Elements With img Elements

Overnight, Chrome was updated and broke an application feature we’ve deployed. The application was dynamically drawing a signature into an HTML5 canvas element and the user would print the page, which contained the canvas. The printed (physical) document would contain the canvas containing the signature. With the Chrome update, canvas elements are no longer being […]

How I Built a cPanel Hosting Environment on Amazon AWS

I published a series at cPanel about how we migrated our hosting architecture on to Amazon AWS. How I Built a cPanel Hosting Environment on Amazon AWS: Part 1 How I Built a cPanel Hosting Environment on Amazon AWS: Part 2 How I Built a cPanel Hosting Environment on Amazon AWS: Part 3

Pure-FTPd/cPanel on Amazon VPC/EC2

I’ve been recently testing the viability of migrating our datacenter instances into an Amazon VPC/EC2 environment. Due to the nature of Amazon’s NAT architecture, a few services need to be configured slightly different to work properly. I was experiencing issues connecting to the Pure-FTPd service on an instance running in VPC. I could connect just […]