Mental Drizzle

Not a Brainstorm - Just Some Mental Drizzle

Posts tagged NGINX

1 note

Pretty URLs with Nginx and Wordpress

I recently had to hack through a server and Wordpress to get permalinks to look good and function. Here’s my solution;

Found this answer on Stackoverflow:

add this and remove any non-specific rewrite rules:

  try_files $uri $uri/  /index.php; 

The only thing missing was where to put that line of code. This post pointed me to insert that line before the first location declaration.

Once I did that, then I restarted the Nginx daemon with:

 sudo service nginx restart 

The I went into the permalinks section of the Wordpress installation.  The permalink setting I like is the “Post Name” setting.  Choosing that radio button sets the url structure as:

 /index.php/%postname%/ 

Unfortunately this setting still returns 404’s when you enter the structure of the site.  I then chose the “Custom Structure” radio button and deleted the index section of the structure to get:

 /%postname%/ 

Then you get happy pretty urls!  

Filed under nginx wordpress stackoverflow permalinks 404 pretty url

0 notes

A Better Queue

Netflix instant watching has been a staple in our house for a while. It really is great to have entire back seasons of television shows on hand. I really find the Netflix Instant watching movie selection frustrating. So many bad movies, and who knows where the hidden gems are? We only access Netflix via AppleTV or Xbox so we don’t get Netflix’s entire recommendation engine.

Enter abetterqueue.com. This nifty week app lets you sort Netflix’s available instant watching offerings versus Rotten Tomatoes’ Tomatometer. You can filter the results by genre, year, and number of tomatoes. So if you are looking for the best action movies from 1960-1980, ABQ is for you! ABQ sits on an Ubuntu 10.4 Linode. It is served up by NGINX. Then it uses Ruby on Rails to squish together the Netflix instant watching offerings with the Rotten Tomatoes content. Some pretty slick custom CSS is used for the granular control over date ranges and Tomato ratings.

Apparently I’m not the only one who knows about ABQ. Over the past week abetterqueue.com has been covered by The Verge, Lifehacker, and Cnet. Go check it out. It looks like more is coming too! I’m personally looking forward to the “add to queue button” and a mobile version.

Filed under A Better Queue ABQ Linode NGINX Dave Jachimiak Ruby Ruby on Rails Netflix Rotten Tomatoes Instant Watching