Wordpress and Lighttpd Permalinks Solution Using Mod_Rewrite

Recently, we just switch over Daily Nerdy to use lighttpd web server instead of Apache. Lighttpd has shown superior performance in regards to serving static content, and uses fast-cgi for processing PHP pages. Everything went smooth and was a breeze until we tried getting nice looking permalinks for Wordpress. We tried dozens of mod_rewrite rules, but most didn’t work in every case and some flat out didn’t work at all.

Here is our mod_rewrite solution which we are currently using and have working with Wordpress 2.8.5.

1.) First include a reference to a separate lighttpd rewrite rule configuration file in your main lighttpd.conf file. This inst required, but we like to break apart the main lighttpd configuration directives from the rewrite rules.

#### Include Rewrite Rules
include “/etc/lighttpd/rewrite_rules.conf”

2.) Create the rewrite rules configuration file (/etc/lighttpd/rewrite_rules.conf) and place the following in it:

$HTTP["host"] =~ “(^|\.)dailynerdy\.com$” {
url.rewrite-once = (
# Exclude audio directory from rewrites
“^/(audio)/?(.*)” => “$0″,

“^/(wp-.+).*/?” => “$0″,
“^/(sitemap.xml)” => “$0″,
“^/(xmlrpc.php)” => “$0″,
“^/keyword/([A-Za-z_0-9-])/?$” => “index.php?keyword=$1″,
“^/(.+)/?$” => “index.php/$1″
)
}

Make sure you change dailynerdy\.com to be your domain name of course. The (^|\.) at the start handles the case of www and no www. Excluding the audio directory is optional as well, but we use the Wordpress plugin Audio Player and store of all our media in that directory, so we excluded it.

Finally as a note, make sure you have the module mod_rewrite installed and uncommented in your lighttpd configuration file.

Tagged with:  

iBlog Pro 3 Wordpress Theme – Apple Website Clone

iBlog Pro 3

PageLines recently updated their awesome WordPress theme iBlog to iBlog Pro 3. I am currently using the theme and absolutely love it.

iBlog Pro 3 is a premium WordPress theme that is designed for Apple lovers and is a clone of the widely admired Apple website. It is easily customized and well documented. iBlog Pro 3 costs $75 and can be scooped up at: pagelines.com/themes/iblogpro/.

Tagged with:  

Jungle Disk; The Only Way To Do Cloud Storage

Jungle Disk


The Problem

After reading about Authorize.net’s fun holiday weekend adventure of a fire in their data center, I decided that I better find a solution to automatically backup my servers data and database dumps to an off-site location just in-case the unthinkable ever happened.

Basically what I have is full drive images taken weekly and daily MySQL and Microsoft SQL database backups that need to be stored off-site. I have known about Amazon Simple Storage Service (S3) for months but it is difficult to setup and requires custom coding and integration via their API. Also, all this gibberish of AWS key, AWS hash, AWS username, and such just flustered me. I also caught wind of Mosso Cloud Files which is a service by RackSpace. While Cloud Files looks very promising on its own, it again requires API integration to automate the backup process.

Tah Dah… Introducing Jungle Disk

There must be an easier way? Then I stumbled across Jungle Disk. Jungle Disk combines the power of using Amazon’s respected infrastructure and reliability, but packages everything into a nice and easy GUI and web interface. But Wait… That’s not it… Order today and you also get full integration with Rack Space Mosso Cloud Files as well. Sorry, that was my tribute to Billie Mays.

Jungle Disk allows you to create disks of either flavor; S3 or Cloud Files via their beautiful ajax rich web interface. Also through the web interface you can create additional users and assign them permissions to disks for $2 per month per user extra. Then simply using their client applications you can push files to the cloud. Their client applications are available for almost every popular operating system; Windows, OSX and Linux.

Jungle Disk Benefits

  • Highly Scalable Infrastructure With Multiple Datacenters Equals Reliability
  • Cost Of Entry Is Essentially Nothing
  • Pay For What You Use
  • Unlimited Number Of Disks
  • Multiple Users With Permissions
  • Secured SSL Encrypted Storage

Private Storage Only

The one thing Jungle Disk does not do is double as a Content Delivery Network (CDN). All files pushed to Jungle Disk are private and cannot be accessed by the public internet. If you need CDN capability Jungle Disk is not your solution, try Amazon’s CloudFront instead. Unfortunately, CloudFront requires API integration and all that gibberish I spoke about above.

Pricing

The cost is $2 a month base ($2 for each additional user) and a pay for what you use model. Amazon S3 storage is $0.15 per gigabyte and data transfer is $0.10 for uploads and $0.17 for downloads per gigabyte. Rackspace Cloud Files is also $0.15 per gigabyte storage and bandwidth is currently unbilled. That’s right, free bandwidth when using Mosso Cloud Files.

Conclusion

Jungle Disk was absurdly easy to implement and the only complaint I have was that I had to restart the Windows 2003 servers after installing the client. But that is more of a beef with Microsoft and their shitty operating systems then Jungle Disk. Their support is amazing! I had a few questions after signing up, and I kid you not, thirty seconds after I created my support ticket I already had a response from some fellow named JungleJosh. I highly recommend Jungle Disk, not only for businesses and corporate users, but also for personal (school documents, photo and video libraries) backups as well.

This Is Why I Hate Windows And Use A Mac

So I decided to install Windows Vista Ultimate via VirtualBox on my MacBook running OSX Leopard. The install went smoothly and booted into Vista and was immediately prompted with this nonsense. Honestly, 74 bloody updates? Everytime you run Windows update there is another security patch or recommend update.

This-Is-Why-I-Hate-Windows

Tagged with:  

iBlog Wordpress Theme – Apple Website Clone

iBlog WordPress ThemeA new WordPress theme; iBlog was just released which is based on the popular and visually appealing Apple website. The iBlog theme was created by Andrew Powers.

The theme is basically a fixed two column layout which uses white and silver colors throughout. I just switched to the theme, and love it.


Rackspace Acquires SliceHost

I have been using Slicehost for my hosting needs for close to six months. I have also referred a handful of my close friends to them as well. Firstly, Slicehost has offered me amazing customer service, exceptional uptime, and flexibility few others offer. They provide full root access to a variety of Linux flavors, my favorites being CentOS and Fedora. Recently they have added much-requested features such as bandwidth pooling, private ip addresses, and a knowledgebase and help article library that rivals anything on the net.

Let me first congratulate Jason, Jared, and the rest of the crew on being acquired by Rackspace. I imagine you guys are out celebrating like rock stars.

Moving forward, I hope Slicehost can continue to provide the personal and extraordinary service and customer support previously offered. Rackspace is a solid company, and I hope they realize, what aint broke, don’t need fixing.

Official Slicehost Announcement
http://www.slicehost.com/articles/2008/10/22/big-news-today

The Slicehost & Rackspace FAQ
http://www.slicehost.com/rackspace

Tagged with:  
© 2010 Daily Nerdy.