Force HTTS redirect behind an AWS Elastic Load Balancer

If you want to force HTTPS for your site behind an AWS Elastic Load Balancer, place this in your .htaccess file, just after Rewrite Engine On: # Force HTTPS – Proto needed for AWS ELB RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteCond %{HTTP_USER_AGENT} !^ELB-HealthChecker RewriteRule ^.*$ https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent] Advertisements

Using HTTPS for a Laravel app behind an AWS Elastic Load Balancer

When using an AWS Elastic Load Balancer, the communication between the load balancer and your server is HTTP. Laravel will adjust the urls crated based on the protocol but since it only see’s http it can cause issues. To resolve this there is a nice Laravel package called Trusted Proxy, https://github.com/fideloper/TrustedProxy. The package allows Laravel to … More Using HTTPS for a Laravel app behind an AWS Elastic Load Balancer

Exclusive locks not supported error, when using FreeBSD in Vagrant.

This error drove me crazy for the longest time. I was using Vagrant, FreeBSD and Laravel for a project and laravel would not run because of where it stores the cache. It took awhile for me to find a good fix but it is fairly easy. In your  /etc/rc.conf file add two lines: rpc_lockd_enable=”YES” rpc_statd_enable=”YES” … More Exclusive locks not supported error, when using FreeBSD in Vagrant.

How to log into Office365 or SharePoint Online using PHP

My previous post on adding items to a SharePoint list was using a normal SharePoint server. I have had a few question on how to do the same thing for the Office 365 and SharePoint Online since the previous code did not work. With the help of this website I was able to create some code on … More How to log into Office365 or SharePoint Online using PHP