Configuring Lighttpd for WordPress with Rewrites

Today I had to configure a WordPress website to use Lighttpd. I looked for the proper rewrites to use and only received garbled information about the rewrites. So instead of forgetting it again for the umpteenth time, I will post my getting WordPress to work with Lighttpd tips / tricks here.

First up there are three key rewrites to get Lighttpd to work with WordPress. They are as follows: (note mod_rewrite will need to be enabled and this is in the lighttpd.conf).

url.rewrite = (
        "^/(wp-admin|wp-includes|wp-content)/(.*)" => "$0",
  "^/(.*).(.+)$" => "$0",
  "^/(.+)/?$" => "/index.php/$1"
)
									

The second key item is making sure that the error handler is set properly.… Read More

Trick for Apache2 and MySQL Crashing on High Load / Apache Benchmark

In the past, I have given some thought to a high load but not very much. For the most part having Lighttpd and Varnish in front of my Web servers alleviates most problems. That is until the other day when I decided to do an Apache benchmark test on my system and was able to bring down the server. The load made MySQL go insane by inflating it to 200% CPU usage! To make my servers available again I had to basically restart MySQL. This is not a huge issue, mainly because we do not have a high load but it was concerning.… Read More

Trick to Pin Programs and Applications to Taskbar and Start Menu using Powershell

Recently at work, I am trying to automate my image creation for new computers to streamline the process and make everyone’s computer more consistent. Not to mention that my workload has increased dramatically over the past 2 to 3 months. With that, part of my major issue has always been pinning apps and programs to the task bar and the start menu. This is simply for the user to have multiple options of accessing the most common programs that they use, such as email or VPN.

Searching through Google there was a lot of methods available, but 95% of them were inefficient and only worked for the current user who was running the shell.… Read More

Stop Crontab from Sending Emails

This week I was starting to get fed up with Crontab and it always sending me emails regarding jobs. I have log files setup and prefer to look at my logs for errors vs crontab flooding my inbox. I never can seem to remember the 2>&1 trick, as I do not constantly use crontab. So I went exploring in the manual and found a nice little track to stop crontab from flooding your sever mail file with mail. Simply put MAILTO='' at the top of your crontab and you are set. No more trying to remember the tricky 2>&1 or any other weird hacks.… Read More

Pastebin like Service: Paste.ee

Dealing with code a lot and online help I tend to use Pastebin like services all the time. I have recently stumbled upon a rare gem called Paste.ee. Paste.ee seems to allow a lot of control over your pastes (including encryption) as well as API setup without any type of monetary value or advertising (unlike the alternative, pastebin). Paste.ee is one of those service you are glad to stumble upon and hope that they stick to their ropes for the rest of their life span. With a very clean and simple to use interface, I can see paste.ee going a long ways, as long as they keep regular updates to improve the system and listen to the users feedback.… Read More

OpenVPN Manual Install Android Samsung Galaxy S4

OpenVPN on AndroidLast night I wanted to connect to my VPN to have access to the server resources on my T-Mobile Galaxy S4. Unfortunately it seems that installing the OpenVPN Installer App from the Play Store has been broken on 4.3 and up versions of Android. Thankfully I was able to hack together a few steps that will allow you to install the OpenVPN binary needed to use the OpenVPN Settings App. Even more so I decided to document how I was able to install the binary in this blog, if only so I have a tutorial for when I re-rom my phone.… Read More

↑ BACK TO THE TOP ↑