Nginx Split Test A/B

Have you ever wanted to split test multiple pages on your website? You could use a WordPress plugin called Simple Page Tester but you are limited to testing two urls at a time. After some searching, I came across a simple way to split test multiple URLs using Nginx split client module.

First, add this section to the top of your Nginx Config:

split_clients "${remote_addr}AAA" $destination {

Next, add a rewrite rule to your server section:

server {
 rewrite ^/rewrite-url-goes-here/$ $destination redirect;

Finally, restart Nginx to see the changes:

sudo service nginx restart

Hope this is helpful. It can also be used to redirect Nginx to random URLs. Let me know if you have any questions below.

Side Project Tech Stack

I want to start this post by saying this is my preference on the frameworks and technologies that I use for most of my apps. Depending on your experience and goals you should experiment to see what works for you. For example, here’s a tweet from Pieter Levels that his site is running on a single PHP file and is making over $2,000 a day. He makes a good point that if your goal is to make money, the frameworks and libraries can get in the way of you making progress. It’s impressive what he is able to accomplish by keeping things simple.

Read More

Digital Ocean New Droplets 2018

Digital Ocean just came out with new droplets and prices for 2018. For $5 a month, you can get a server with 1GB of ram and 25GB of solid state drive which is great for most web apps such as blogs or even weather extensions. Currently, this blog is hosted on Digital Ocean.

If you have any droplets, I would recommend resizing them to take advantage of the new prices. It’s a quick process but does require you to shutdown the server. I was able to resize several of my $5 and $10 droplets to the new plans and essentially double my servers speed. Read More

Copy SSH key to Clipboard

Copying my ssh key to my clipboard is always something I have to google. It’s different depending on operating system and depends on what you have installed. This is a short guide on how to copy your ssh key to the clipboard.


  • Type: pbcopy < ~/.ssh/

Linux (Ubuntu)

  • Type and copy output: cat ~/.ssh/

Windows (Git Bash)

  • Type: clip < ~/.ssh/

Please leave a comment below if you have a better way or would like me to add an additional operating system.